Answers for "using limit in laravel relationship"

PHP
0

laravel has many limit

public function posts()
{
    return $this->hasMany('AppModelsPost', 'cat_id')->take(4);
}
Posted by: Guest on October-11-2020

Code answers related to "using limit in laravel relationship"

Browse Popular Code Answers by Language