Skip to content

Instantly share code, notes, and snippets.

@TiagoSilvaPereira
Created April 18, 2020 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TiagoSilvaPereira/380a30cb7467d065bc5339abef75a2fe to your computer and use it in GitHub Desktop.
Save TiagoSilvaPereira/380a30cb7467d065bc5339abef75a2fe to your computer and use it in GitHub Desktop.
AbstractCrudController
<?php
namespace App\Http\Controllers\Base;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
abstract class CrudController extends BaseController
{
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment