// SYSTEM PANEL //
[ROOT]
/
mnt
/
pleskStorage
/
vhosts
/
kodsolutions.net
/
subdomains
/
go-rent.kodsolutions.net
/
app
/
Library
[ PARENT ]
EDIT :: Settings.php
<?php namespace App\Library; use App\Models\City; use App\Models\Car\Category; use App\Models\Setting; use Illuminate\Support\Facades\Config; use Illuminate\View\View; class Settings { public function compose( View $view ) { $this->setting($view); } private function setting(View $view) { $setting = Setting::first(); $view->with('setting', $setting); $footerCategories = Category::publish()->take(6)->get(); $view->with('footerCategories', $footerCategories); $footerCities = City::City()->publish()->take(6)->get(); $view->with('footerCities', $footerCities); $cta = \App\Models\Page::whereSlug('cta')->first(); $view->with('cta', $cta); $locales = Config::get('app.translate_locales'); $view->with('locales', $locales); $view->with('locale', app()->getLocale()); } }
SAVE
CANCEL