0

I am making a mobile app with a username-password login screen. Yesterday i left my computer on when i was done with work. Today i sit behind my computer and try to log in. Strange thing is i get this error:

{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"syntax error, unexpected '$credentials' (T_VARIABLE)","file":"C:\\Google Drive\\htdocs\\laravel4_test4\\app\\controllers\\MobileController.php","line":18}}

Weirdest thing of all is i haven't chaged any code since yesterday. This is the part of my controller code that seems to give the syntax error.

public function login(){

  $input = Input::all()
  $credentials = array('username' => $input['name'], 'password' => $input['password']);

  if(Auth::attempt($credentials)){

    // HERE COMES THE REST

There seems to be nothing wrong with the code. Does anyone know why this could be happening?

1 Answer 1

4

You missed a semicolon after $input = Input::all()

$input = Input::all();
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.