Пример #1
0
 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");
 }
Пример #2
0
 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);
 }
Пример #3
0
 public static function settings()
 {
     return Settings::first();
 }