fix(BE): show controller
This commit is contained in:
parent
7b2497e392
commit
377f1b6624
2 changed files with 15 additions and 8 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace App\Models\Show;
|
||||
|
||||
use App\Filters\Show\ShowDaysFilters;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
@ -41,4 +42,9 @@ class ShowDays extends Model
|
|||
{
|
||||
return $this->belongsTo(Show::class, 'show_id');
|
||||
}
|
||||
|
||||
public function scopeSearchFilter($query, $request) {
|
||||
$filters = new ShowDaysFilters();
|
||||
return $filters->apply($query, $request);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue