Skip to content

Commit

Permalink
chore: #547 add auto setup for show operation
Browse files Browse the repository at this point in the history
as per laravel backpack upgrade guide
  • Loading branch information
m-triassi committed Jul 12, 2022
1 parent c2bf4d9 commit b878193
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/Admin/EventCrudController.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ protected function setupCreateOperation()
*/
protected function setupShowOperation()
{
$this->autoSetupShowOperation();
$this->checkIfAccessible('show');
$this->setupListOperation();
}
Expand Down
1 change: 1 addition & 0 deletions app/Http/Controllers/Admin/SessionCrudController.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ protected function setupCreateOperation()
*/
protected function setupShowOperation()
{
$this->autoSetupShowOperation();
$this->checkIfAccessible('show');
$this->setupListOperation();
}
Expand Down

0 comments on commit b878193

Please sign in to comment.