Last active
July 31, 2020 18:19
-
-
Save lfbn/2a4f327885dd7d39ed66e8f6ca67dcab to your computer and use it in GitHub Desktop.
QuoteRepository.php #laravel #laravel_repositories
This file contains 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\Repositories\Eloquent; | |
use App\Model\Message; | |
use App\Model\Quote; | |
use App\Repositories\QuoteRepositoryInterface; | |
use Illuminate\Database\Eloquent\Builder; | |
use Illuminate\Database\Eloquent\Collection; | |
use Illuminate\Database\Eloquent\Model; | |
/** | |
* Class QuoteRepository | |
* @package App\Repositories\Eloquent | |
*/ | |
class QuoteRepository extends BaseRepository implements QuoteRepositoryInterface | |
{ | |
/** | |
* UserRepository constructor. | |
* | |
* @param Quote $model | |
*/ | |
public function __construct(Quote $model) | |
{ | |
parent::__construct($model); | |
} | |
/** | |
* @return Collection|Model[] | |
*/ | |
public function all() | |
{ | |
return $this->model::all(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment