芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/portpulselogistics.com/Modules/Pages/Http/Controllers/Front/PageController.php
check() && auth()->user()->can('view-pages')) { $page = Page::where('slug', $slug)->with('creator')->first(); }else{ $page = Page::where('slug', $slug)->with('creator')->showInFront()->first(); } if(!$page){ return view('theme.pages.error')->with([ 'message' => __('pages::messages.pages.dont_have_the_permissions'), ]); } $page_resource = collect(new PageResource($page))->toArray(); return view('theme.pages.page')->with([ 'page' => $page_resource, ]); } }