Skip to content

Instantly share code, notes, and snippets.

@jsdecena
Created March 14, 2018 01:45
Show Gist options
  • Select an option

  • Save jsdecena/152659d47b5fe2267cbb1240fddff5ff to your computer and use it in GitHub Desktop.

Select an option

Save jsdecena/152659d47b5fe2267cbb1240fddff5ff to your computer and use it in GitHub Desktop.
<?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