Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\Http\Controllers;
- use Illuminate\Support\Facades\Auth;
- class LoginEmailController extends Controller
- {
- public function authenticate()
- {
- if (Auth::attempt(['email' => $email, 'password' => $password])) {
- // sukses
- return redirect()->intended('dashboard');
- }
- // gagal
- return redirect()->back();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement