add rahyab notification service

This commit is contained in:
ehsan.moradi
2025-05-01 17:18:14 +03:30
parent 6d108e43c9
commit b573d1bbed
19 changed files with 1112 additions and 2 deletions
+15
View File
@@ -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');
}
}