Questions tagged [laravel-fortify]

The Laravel Fortify is an open-sourced authentication backend for Laravel. The source code of Laravel Fortify is hosted on GitHub and released under the MIT license. Even though Laravel Fortify often times referred as Fortify, please do not confuse Laravel Fortify to Micro Focus product called Fortify.

Laravel Fortify is a frontend agnostic authentication backend for Laravel released under MIT License. Laravel Fortify implements routes and controllers that handles login, registration, password reset, email verification, two factor authentication, and more.

Documentation

119 questions
7
votes
2 answers

How to integrate Spatie's laravel-permission with JetStream properly?

I have a nicely working basic install of Laravel JetStream and Spatie's laravel-permission in Laravel 8. I can assign a role to the user during registration via $user->assignRole('visitor'); return $user; and can restrict the available menu items…
6
votes
2 answers

How to Add Roles and Permission to Laravel Fortify + Inertia + vue?

my project use laravel fortify, inertia with vue. i have to add role based permissions (just like spatie permissions package). i'm still a beginner to fortify and inertia. but i have experience in spatie package. i'm stuck with how add roles and…
Viduranga
  • 490
  • 7
  • 17
6
votes
3 answers

Login with either email or username with Fortify Laravel 8

I'm trying to allow users to login using either email or username along with their password. I've added the following code inside boot() in FortifyServiceProvider.php : Fortify::authenticateUsing(function (Request $request) { $user =…
Bu Saeed
  • 1,173
  • 1
  • 16
  • 27
5
votes
1 answer

Error Bag disappears from a Laravel Livewire Blade template

The following piece of PHP code works to capture input from a Livewire form. The form updates a user's password, and for the keen-eyed amongst you, you may find that large sections of it are taken from the Laravel Fortify framework. /** * Validate…
cartbeforehorse
  • 3,045
  • 1
  • 34
  • 49
5
votes
4 answers

how to remove jetstream and fortify in laravel?

I am trying to remove Fortify and Jetstream packages from Laravel so I removed them from App. Providers, from composer.json (require section), Actions, Config, vendor. Then I run composer update and I get the following message: Script @php artisan…
JordiEs
  • 51
  • 1
  • 1
  • 4
4
votes
5 answers

Laravel Fortify doesn't respond with HTTP code but with actual routes, even if I send the registration request as an XHR one

Context With Postman, I send the following fields in order to register a user in the db, to the URL http://mywebsite/register: email password password_confirmation name According to the documentation…
4
votes
3 answers

Fortify - How to customise verification / password reset emails?

I'm in the process of implementing fortify into my app. I'm really confused about customising the default emails that are produced when you hit the password-reset / verifty-email routes? I could edit them in vendor but that going to cause me an…
swift--help
  • 637
  • 5
  • 15
4
votes
0 answers

How to customize login error messages in Fortify Laravel 8

When users enter wrong username or password they get the following message: These credentials do not match our records. How can I change this message to something like: You have entered an invalid username/password or both. Please try again. I…
Bu Saeed
  • 1,173
  • 1
  • 16
  • 27
3
votes
1 answer

Laravel 9 login as another user

I want to be able to login as another user from my administrator account. I'm making a SPA application with Inertia Js using laravel fortify to handle sessions and login. In laravel 8 i was able to login as another user but with the laravel 9 the…
chiptu
  • 51
  • 6
3
votes
1 answer

How to send custom user verification email with Fortify?

I want to allow an admin user to add new users, and these users should receive a notification email, but I don't want to use $user->sendEmailVerificationNotification();, because I want to customize the message I send them as well, so sometimes I…
pileup
  • 1
  • 2
  • 18
  • 45
3
votes
2 answers

How to overwrite laravel fortify controllers

I need to overwrite the login,register,logout and 2FA methods to add some logic, How can i publish it from the vendor?, is there something like php artisan vendor:publish .....
sos5020
  • 379
  • 1
  • 3
  • 10
3
votes
2 answers

Laravel 8 Fortify - 2FA only when the user logs in from a new device

I am implementing two-factor authentication (2FA) in my Laravel 8 application. The 2FA is applied every time the user logs in. However, I don't really feel that 2FA is necessary every time, I even find it annoying. As a solution I am thinking of…
3
votes
3 answers

Use Laravel Livewire with Laravel Fortify for Login

I'm wanting to use Laravel Fortify and Livewire to create a very simple login form. I do not want to use Jetstream as it has more features that I do not need vs features I do need. I'm using livewire throughout my app, and would like to use it for…
xslibx
  • 4,249
  • 9
  • 35
  • 52
2
votes
1 answer

Error Class "Laravel\Fortify\Features" not found

I have ecommerce laravel application. Laravel Framework 8.83.8 PHP v8.0.1 I have done php artisan config:cache php artisan route:cache php artisan view:cache I deployed it on Cloudways (Digital Ocean) via Git. but when i try to run my website it…
2
votes
0 answers

POST http://localhost:8000/login 419 (unknown status) laravel+sanctum+vuejs

My Vuejs app doesn't set cookie headers.I am running my laravel app on port 8000 and my vuejs app on port 8080 and I use fortify for authentication. My vuejs app is not in same directory as my laravel app Also in Network tab of chrome this error…
Qahar
  • 69
  • 9
1
2 3 4 5 6 7 8