vendor and env first commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Spatie\QueryBuilder\Exceptions;
|
||||
|
||||
use Exception;
|
||||
use Spatie\QueryBuilder\Enums\SortDirection;
|
||||
|
||||
class InvalidDirection extends Exception
|
||||
{
|
||||
public static function make(string $sort)
|
||||
{
|
||||
return new static('The direction should be either `'.SortDirection::DESCENDING.'` or `'.SortDirection::ASCENDING)."`. {$sort} given.";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user