Skip to content

Commit

Permalink
Update model.stub
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoud-Italy authored Nov 4, 2020
1 parent 0034d96 commit 6b49534
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/stubs/model.stub
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class DummyClass extends Model
// public function image() {
// return $this->morphOne(Image::class, 'imageable');
// }


// Filter Data
public static function filter()
{
Expand All @@ -31,7 +33,7 @@ class DummyClass extends Model
Sort::class
])
->thenReturn()
->paginate($value['paginate'] ?? 10);
->paginate(request('paginate') ?? 10);
}

// fetch Data
Expand Down

0 comments on commit 6b49534

Please sign in to comment.