mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-12 03:01:07 +03:30
add rahyab notification service
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Scopes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Scope;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
|
||||
class OrderByIdScope implements Scope
|
||||
{
|
||||
public function apply(Builder $builder, Model $model)
|
||||
{
|
||||
$builder->orderBy($model->getTable().'.id', 'desc');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user