protected function login(Player $user)
{
if ($user && Auth::login($user)) {
response()->json(["status" => "error", "location" => "https://servers.gg/servers/%YOURSLUG%/vote&return=1"]);
} else {
response()->json(["status" => "error", "message" => Locale::get('login/invalid_password')]);
}
}
In login.php in the controllers folder
Code:protected function login(Player $user) { if ($user && Auth::login($user)) { response()->json(["status" => "error", "location" => "https://servers.gg/servers/%YOURSLUG%/vote&return=1"]); } else { response()->json(["status" => "error", "message" => Locale::get('login/invalid_password')]); } }
In login.php in the controllers folder
Code:protected function login(Player $user) { if ($user && Auth::login($user)) { response()->json(["status" => "error", "location" => "https://servers.gg/servers/%YOURSLUG%/vote&return=1"]); } else { response()->json(["status" => "error", "message" => Locale::get('login/invalid_password')]); } }
Parse error: syntax error, unexpected 'protected' (T_PROTECTED), expecting end of file in C:\inetpub\wwwroot\Cosmic\App\Controllers\Home\Login.php on line 104