Move appSettings generation from blade template to controller

This commit is contained in:
Bubka
2020-03-05 12:30:35 +01:00
parent ecc7447980
commit 6a694280cd
2 changed files with 4 additions and 2 deletions

View File

@ -13,6 +13,8 @@ class SinglePageController extends Controller
*/
public function index()
{
return view("landing");
$appSettings = \Illuminate\Support\Facades\DB::table('options')->pluck('value', 'key')->toJson();
return view("landing")->with('appSettings', $appSettings);;
}
}