resources/views/layouts/app.blade.php
<meta name="csrf-token" content="{{ csrf_token() }}">
/password/reset
# resources/views/auth/passwords/email.blade.php
<form role="form" method="POST" action="{{ route('password.email') }}">
{{ csrf_field() }}
<input id="email" type="email" name="email" value="{{ old('email') }}" required>
<button type="submit">
Send Reset Link
</button>
</form>
После публикации на /password/reset
я получил TokenMismatchException
ошибку:
Маршрут:
$ php artisan route:list | grep password
| account.local.mysite.com | POST | password/email | password.email | App\Http\Controllers\Auth\ForgotPasswordController@sendResetLinkEmail | web,ip,guest |
| account.local.mysite.com | POST | password/reset | | App\Http\Controllers\Auth\ResetPasswordController@reset | web,ip,guest |
| account.local.mysite.com | GET|HEAD | password/reset | password.request | App\Http\Controllers\Auth\ForgotPasswordController@showLinkRequestForm | web,ip,guest |
| account.local.mysite.com | GET|HEAD | password/reset/{token} | password.reset | App\Http\Controllers\Auth\ResetPasswordController@showResetForm | web,ip,guest
.env
APP_ENV=local
APP_KEY=base64:asffwl8j+2xW+LOzTIPcsO0XsMdwjeijKo6ktLyrpI=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_SCHEME=http
Добавлен .env
файл первых 5 строк. Он содержит APP_KEY
, но почему не может найти под php artisan tinker
?
Что не так?