mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-10 06:07:54 +02:00
Set Options with fallback values and better boolean handling
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Classes\Options;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class SinglePageController extends Controller
|
||||
@ -13,8 +14,6 @@ class SinglePageController extends Controller
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$appSettings = \Illuminate\Support\Facades\DB::table('options')->pluck('value', 'key')->toJson();
|
||||
|
||||
return view('landing')->with('appSettings', $appSettings);
|
||||
return view('landing')->with('appSettings', Options::get()->toJson());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user