public function update(Request $request) { Laralum::permissionToAccess('laralum.settings.access'); # Check permissions Laralum::permissionToAccess('laralum.settings.edit'); $row = Settings::first(); $data_index = 'settings'; require 'Data/Edit/Save.php'; return redirect('admin/settings')->with('success', "The settings have been updated"); }
public function getSettings() { $site_code = Settings::first()->site_code; $site_title = Settings::first()->site_title; $owner = Settings::first()->owner; $street = Settings::first()->street; $barangay = Settings::first()->barangay; $zip_code = Settings::first()->zip_code; $contact = Settings::first()->contact; $fax = Settings::first()->fax; $tin = Settings::first()->tin; //$posts=Post::orderBy('created_at','desc')->paginate(15); //return view('general-settings',['populatecountry' => $populatecountry]); return view('welcome')->with('site_code', $site_code)->with('site_title', $site_title)->with('owner', $owner)->with('street', $street)->with('barangay', $barangay)->with('zip_code', $zip_code)->with('contact', $contact)->with('fax', $fax)->with('tin', $tin); }
public static function settings() { return Settings::first(); }