Laravel Has Many Limit

[Solved] Laravel Has Many Limit | Php - Code Explorer | yomemimo.com
Question : laravel has many limit

Answered by : tiago-frana

public function posts()
{ return $this->hasMany('App\Models\Post', 'cat_id')->take(4);
}

Source : https://laracasts.com/discuss/channels/eloquent/laravel-51-eloquent-relationship-hasmany-limit-records | Last Update : Sun, 18 Oct 20

Answers related to laravel has many limit

Code Explorer Popular Question For Php