Created
March 14, 2018 01:45
-
-
Save jsdecena/152659d47b5fe2267cbb1240fddff5ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Base; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Database\Eloquent\ModelNotFoundException; | |
| use Illuminate\Pagination\LengthAwarePaginator; | |
| abstract class BaseRepository | |
| { | |
| protected $model; | |
| /** | |
| * BaseRepository constructor. | |
| * @param Model $model | |
| */ | |
| public function __construct(Model $model) | |
| { | |
| $this->model = $model; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment