App\Http\Controllers\Backend\PagesController::index PHP Method

index() public method

Display a listing of the resource.
public index ( ) : Response
return Response
    public function index()
    {
        $page = Page::where('slug', '=', 'overview')->first();
        $gallery = Page::where('slug', '=', 'gallery')->first();
        $images = explode(',', $gallery->content);
        return view('backend.pages.index', ['page' => $page, 'gallery' => $gallery, 'images' => $images]);
    }