Thanks mr for a nice explanations but why making so many middleware just to redirect user based on the role? I think you had to make 1 middleware which can redirect user to a specific route based on his role. Just my opinion..
when using volt, livewire option is the class based api (use of classes), while livewire-functional is the functional based api . On the issue of using mongo db you can check out this article www.mongodb.com/compatibility/mongodb-laravel-integration
worked , thank you . but anytime i add default: return redirect('/') an error shows : Symfony\Component\ErrorHandler\Error\FatalError A void function must not return a value
Hello, how do I fix this error App\Http\Middleware\Normal::handle(): Return value must be of type Symfony\Component\HttpFoundation\Response, none returned?
I dont understand when does it construct the database, when does it creates the database, should I create it on mysql first? with the name of the project? Sorry im new to laravel and looks very very superior.
The default database is SQLite and it's preconfigured also migrations for the default tables are automatically done. If you want to use myql instead you can change the database configurations in the .env file. Glad you like it
When you do : php artisan migrate Laravel create the database automatically. Now if you want to change the database informations, like the name, or the password, you have to go to the " .env " file. And now you change the values.
Hi, could you continue 2nd video for crud with add, edit, delete & list. if u want
That was perfect dear sir it was really helpful
Thanks mr for a nice explanations but why making so many middleware just to redirect user based on the role?
I think you had to make 1 middleware which can redirect user to a specific route based on his role.
Just my opinion..
Thanks, I agree just one middleware would do it
Very nice. I have one question why three separate middleware?
Welcome, No specific reason actually, just what I thought at the moment. I get your point, one was enough
do u have video about deferences about livewire and livewire-funcional? and how to setting/using laravel-mongodb as the database... please
when using volt, livewire option is the class based api (use of classes), while livewire-functional is the functional based api . On the issue of using mongo db you can check out this article www.mongodb.com/compatibility/mongodb-laravel-integration
worked , thank you . but anytime i add default: return redirect('/') an error shows : Symfony\Component\ErrorHandler\Error\FatalError
A void function must not return a value
The error is caused by a void return type in your function.
Hello, how do I fix this error App\Http\Middleware\Normal::handle(): Return value must be of type Symfony\Component\HttpFoundation\Response, none returned?
I got the error: Target class [app\Http\Middleware\Admin] does not exist. Any help is appricated
I dont understand when does it construct the database, when does it creates the database, should I create it on mysql first? with the name of the project? Sorry im new to laravel and looks very very superior.
$ php artisan migrate, just do it so it runs the query
The default database is SQLite and it's preconfigured also migrations for the default tables are automatically done. If you want to use myql instead you can change the database configurations in the .env file. Glad you like it
When you do : php artisan migrate
Laravel create the database automatically.
Now if you want to change the database informations, like the name, or the password, you have to go to the " .env " file.
And now you change the values.
@@raviel498 Thanks raviel, I was struggling with that, and I already found that the same day on stackoverflow, I appreciate your comment
@@laraphant It's getting harder to make all the code for me hehehe, but thanks for all my man. you big.
Why do u need 3 different middleware files with same content?
Isnt it easier to make one - RoleMiddlleware or whatever and make the same?
I agree with you
can I make a 1 middleware for all? all the codes are almost the same for the middleware you've created.
Yes, that is the recommended way
i use this but in blade code does not work... i use simple blade
Your approach will definitely be different in this case
Can you continue the google drive series 🥹👈
Noted
Are you Kenyan, by the way?
Yes
you safe me brother, tks
Glad to help
Thank you so much
Beautiful
Thanks a lot man
Any time
thx man
Thank you @LaraPhat