Convert all env() calls to config() calls
This commit is contained in:
parent
e032cd5861
commit
b4df7a1bbb
10 changed files with 61 additions and 14 deletions
|
@ -15,9 +15,9 @@ class AuthController extends Controller
|
|||
*/
|
||||
public function login(Request $request)
|
||||
{
|
||||
if ($request->input('username') === env('ADMIN_USER')
|
||||
if ($request->input('username') === config('admin.user')
|
||||
&&
|
||||
$request->input('password') === env('ADMIN_PASS')
|
||||
$request->input('password') === config('admin.pass')
|
||||
) {
|
||||
session(['loggedin' => true]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue