Загрузка...

Updates to the Laravel Fortify SPA Authentication, Improvements & Routes File Cleanup

There have been some improvements to Laravel Fortify since I recorded the videos in this series, for example, now you are able to disable views via config. Now Laravel Fortify has official documentation on the Laravel Docs site that includes some additional info it did not have earlier. Also seems like there was an undocumented feature that allows you to specify a prefix to the generated routes. So with these two improvements combined, I was able to get rid of the routes that we added in the api.php routes file in this series & improve the code a bit. This removes the need of having to maintain these routes yourself, instead, you just use Laravel's routes.

🤝 You can support me by giving my videos a 👍 & by subscribing to the channel ✔️

--- Note ---
At 1:48 I set the prefix to 'api' but the 'middleware' is set to 'web'. This will work properly because of the way routes are handled in api.php, but you can change the 'web' to 'api' middleware to stay consistent so that way it applies the proper middlewares. Note that before, the routes lived within api.php which used 'api' middleware and now that we removed them, it's a good idea to change the default 'web' to 'api' in the fortify.php config file. I made this change on the repository.

---- Source Code ----
Back-End (Laravel): https://github.com/ggelashvili/laravel-fortify-spa-backend
Front-End (Next.JS): https://github.com/ggelashvili/laravel-fortify-spa-frontend

--- Laravel Fortify Without Jetstream Series ---
Laravel Fortify Without Jetstream Feature - https://youtu.be/QYJKp1e71xs
Add Two-Factor Authentication Feature - https://youtu.be/EVWmma7nXak
Add User Registration Feature - https://youtu.be/Gt_6XFCLD5Y
Add Account Profile & Password Updates Feature - https://youtu.be/ELLDzzhIefA
Add Password Reset Feature - https://youtu.be/hbP-oodgixA
Authenticate Mobile App With Fortify & Sanctum - https://youtu.be/ymLpLWklzxQ
Updates to Laravel Fortify - https://youtu.be/2a2FFg40zFI

Видео Updates to the Laravel Fortify SPA Authentication, Improvements & Routes File Cleanup канала Program With Gio
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять