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

        $pages = Page::onlyTrashed()
            ->orderBy('updated_at', 'desc')
            ->orderBy('created_at', 'desc')
            ->with('pagetype')
            ->paginate(self::PAGINATION_ITEMS);

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

        $pages = Page::onlyTrashed()
            ->orderBy('updated_at', 'desc')
            ->orderBy('created_at', 'desc')
            ->with('pagetype')
            ->paginate(self::PAGINATION_ITEMS);

        return view('page::pages.trashed', ['pages' => $pages]);
    }
public function trashed ( Request $ request ) { // Set roles that have access $ request -> user ( ) -> authorizeRoles ( [ 'admin' , 'editor' ] ) ; $ pages = Page :: onlyTrashed ( ) -> orderBy ( 'updated_at' , 'desc' ) -> orderBy ( 'created_at' , 'desc' ) -> with ( 'pagetype' ) -> paginate ( self :: PAGINATION_ITEMS ) ; return view ( 'page::pages.trashed' , [ 'pages' => $ pages ] ) ; }
Display a listing of trashed resources.
@param Request $request
@return Response
@todo: This should be merged into index method
Display a listing of trashed resources .