Create Repositories folder inside App folder => App/Repositories Now create BaseRepository .php inside the Repositories folder <?php namespace App\Repositories ; use Illuminate\Database\Eloquent\ Model ; class BaseRepository { /** * The Model name. * * @var \Illuminate\Database\Eloquent\ Model ; */ protected $model ; /** * Paginate the given query. * * @param The number of models to return for pagination $n integer * * @return mixed ...
Learn Full stack Development with PHP, MYSQL, HTML, Css, javascript, jquery, Ajax, Rest Webservices, Laravel, Angular, React,