/** * Display a listing of the resource. * * @return FrontGlobalData */ public function index() { #-- Prepare public vars $this->theme->asset()->writeScript('inline-script', ' var GS_VARS = { PUBLIC_URL: "' . url('/') . '", ASSETS_URL: "' . url('/assets') . '", _TOKEN: "' . csrf_token() . '" }; ', array()); #-- Push view return $this->theme->scopeWithLayout('home')->render(); }