src/Controllers/PermissionController.php
public function confirmDelete(Permission $permission)
    {
        $this->authorize('delete', Permission::class);

        return view('laralum::pages.confirmation', [
            'method' => 'DELETE',
            'action' => route('laralum::permissions.destroy', ['permission' => $permission->id]),
        ]);
    }
public function confirmDelete(Permission $permission)
    {
        $this->authorize('delete', Permission::class);

        return view('laralum::pages.confirmation', [
            'method' => 'DELETE',
            'action' => route('laralum::permissions.destroy', ['permission' => $permission->id]),
        ]);
    }
public function confirmDelete ( Permission $ permission ) { $ this -> authorize ( 'delete' , Permission :: class ) ; return view ( 'laralum::pages.confirmation' , [ 'method' => 'DELETE' , 'action' => route ( 'laralum::permissions.destroy' , [ 'permission' => $ permission -> id ] ) , ] ) ; }
Displays a view to confirm delete.

@param \Laralum\Permission\Models\Permission $permission

@return \Illuminate\Http\Response
Displays a view to confirm delete .