Skip to content

Commit

Permalink
Update controller.api.stub
Browse files Browse the repository at this point in the history
add spatie laravel-permissions
  • Loading branch information
Mahmoud-Italy authored Aug 26, 2020
1 parent 1206793 commit 0d1027f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions resources/stubs/controller.api.stub
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ use Spatie\QueryBuilder\QueryBuilder;

class DummyClass extends Controller
{
function __construct()
{
// $this->middleware('permission:view_'.$DummyModelVariable, ['only' => ['index', 'show', 'export']]);
// $this->middleware('permission:add_'.$DummyModelVariable, ['only' => ['store']]);
// $this->middleware('permission:edit_'.$DummyModelVariable,
// ['only' => ['update', 'active', 'inactive', 'trash', 'restore']]);
// $this->middleware('permission:delete_'.$DummyModelVariable, ['only' => ['destroy']]);
}

/**
* Display a listing of the resource.
*
Expand Down

0 comments on commit 0d1027f

Please sign in to comment.