|
|
@@ -2,16 +2,16 @@
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
+use App\Models\Scopes\YearScope;
|
|
|
+use Illuminate\Database\Eloquent\Attributes\ScopedBy;
|
|
|
use Illuminate\Database\Eloquent\Casts\Attribute;
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
+#[ScopedBy([YearScope::class])]
|
|
|
class OrderView extends Model
|
|
|
{
|
|
|
const DEFAULT_SORT_BY = 'created_at';
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
protected $table = 'orders_view';
|
|
|
|
|
|
protected $fillable = [
|