mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-17 09:01:06 +02:00
Move appSettings generation from blade template to controller
This commit is contained in:
@ -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);;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user