My middleware code
php version 5.6.32-1
<?php
namespace App\Http\Middleware;
use Session, Closure;
class AuthLogin
{
public function handle($request, Closure $next)
{
if (!Session::has('account')) {
return redirect('/admin/login');
}
return $next($request);
}
}
And I get this error
array_key_exists(): The first argument should be either a string or an integer
what's happend with it?
There is not any error on my mac, but it's happen on my linode server
7.0+