Here what I have so far, and for some reason,
I couldn't get it to save to database.
I've check everything.
Can someone tell me what did I do wrong ?
But for some reason, the file is save to my local system.
$user = new User;
$user->firstname = Input::get('firstname');
$user->lastname = Input::get('lastname');
$user->username = Input::get('username');
$user->email = Input::get('email');
$logo_path = Input::file('logo_path');
if (Input::hasFile('logo_path'))
{
$file = Input::file('logo_path');
$destinationPath = base_path().'/app/files/logo_path/';
$filename = $file->getClientOriginalName();
$uploadSuccess = $file->move($destinationPath, $filename);
$user->logo_path = $filename;
}
return Redirect::to('/users/')
->with('success',' Your Account has been created');
}