PHP code example of staudenmeir / eloquent-param-limit-fix
1. Go to this page and download the library: Download staudenmeir/eloquent-param-limit-fix library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
staudenmeir / eloquent-param-limit-fix example snippets
class User extends Model
{
use \Staudenmeir\EloquentParamLimitFix\ParamLimitFix;
public function posts()
{
return $this->hasMany('App\Post');
}
}
$users = User::with('posts')->get();