Skip to content

Instantly share code, notes, and snippets.

View dieggop's full-sized avatar
🏠
Working from home

Dieggo Carrilho dieggop

🏠
Working from home
View GitHub Profile
@dieggop
dieggop / ConteudoController
Created October 24, 2017 14:27
AuthServiceProvider
public function index()
{
if (Gate::forUser(Auth::guard('admin_user')->user())->denies('listar-conteudos')) {
abort(403,'Não pode listar conteudos');
}
$conteudos = $this->conteudos->orderBy('id', 'desc')->paginate(10);