Skip to content

Instantly share code, notes, and snippets.

@lfbn
Last active July 31, 2020 18:19
Show Gist options
  • Save lfbn/2a4f327885dd7d39ed66e8f6ca67dcab to your computer and use it in GitHub Desktop.
Save lfbn/2a4f327885dd7d39ed66e8f6ca67dcab to your computer and use it in GitHub Desktop.
QuoteRepository.php #laravel #laravel_repositories
<?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