Search code examples
laravellaravel-bladelaravel-authentication

how to define Undefined variable: token (View: C:\xampp\htdocs\blog\resources\views\auth\passwords\email.blade.php)


enter image description here

Undefined variable: token (View: C:\xampp\htdocs\blog\resources\views\auth\passwords\email.blade.php)


Solution

  • If you have used default auth(using php artisan make:auth) in laravel then change like this in \auth\passwords\email.blade.php file:

    <form method="POST" action="{{ route('password.email') }}">
    @csrf