public function delete(Request $request, $page)
    {
        // Set roles that have access
        $request->user()->authorizeRoles(['admin', 'editor']);

        $page = Page::withTrashed()->findOrFail($page);
        return view('page::pages.delete', ['page' => $page]);
    }
public function delete(Request $request, $page)
    {
        // Set roles that have access
        $request->user()->authorizeRoles(['admin', 'editor']);

        $page = Page::withTrashed()->findOrFail($page);
        return view('page::pages.delete', ['page' => $page]);
    }
public function delete ( Request $ request , $ page ) { // Set roles that have access $ request -> user ( ) -> authorizeRoles ( [ 'admin' , 'editor' ] ) ; $ page = Page :: withTrashed ( ) -> findOrFail ( $ page ) ; return view ( 'page::pages.delete' , [ 'page' => $ page ] ) ; }
Display a delete page.
@param Request $request
@param $page
@return View
Display a delete page .