Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IlluminateAuthSessionGuard::login() must be an instance of IlluminateContractsAuthAuthenticatable, instance of Appcustomer given.
- public function store(Request $request)
- {
- $user = new customer;
- $user->name=Input::get('name');
- $user->email=Input::get('email');
- $user->password=Input::get('password');
- $user->save();
- Auth::login($user);
- return redirect::home();
- }
- Route::get('register', 'testing@index');
- Route::post('store', 'testing@store');
- Route::get('login', 'testing@create');
- Route::post('logout', 'testing@destroy');
- <form action="store" method="post">
- <label for="name">Name</label>
- <input type="text" name="name" autocomplete="off">
- <br>
- <label for="email">Email</label>
- <input type="text" name="email" autocomplete="off">
- <br>
- <label for="password">Password</label>
- <input type="text" name="password" autocomplete="off">
- <br>
- <input type="hidden" name="_token" value="{{csrf_token()}}">
- <br>
- <input type="submit" name="submit" value="Submit">
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement