Hi, could you continue 2nd video for crud with add, edit, delete & list. if u want
@afdevs3054Ай бұрын
That was perfect dear sir it was really helpful
@alkadoHs8 ай бұрын
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..
@laraphant8 ай бұрын
Thanks, I agree just one middleware would do it
@babarqb8 ай бұрын
Very nice. I have one question why three separate middleware?
@laraphant8 ай бұрын
Welcome, No specific reason actually, just what I thought at the moment. I get your point, one was enough
@kashthrob23 күн бұрын
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
@laraphant22 күн бұрын
The error is caused by a void return type in your function.
@zackyhabibie37338 ай бұрын
do u have video about deferences about livewire and livewire-funcional? and how to setting/using laravel-mongodb as the database... please
@laraphant8 ай бұрын
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
@carlosmontiel70787 ай бұрын
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.
@carlosmontiel70787 ай бұрын
$ php artisan migrate, just do it so it runs the query
@laraphant7 ай бұрын
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
@raviel4987 ай бұрын
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.
@carlosmontiel70787 ай бұрын
@@raviel498 Thanks raviel, I was struggling with that, and I already found that the same day on stackoverflow, I appreciate your comment
@carlosmontiel70787 ай бұрын
@@laraphant It's getting harder to make all the code for me hehehe, but thanks for all my man. you big.
@dmdk83017 ай бұрын
Why do u need 3 different middleware files with same content? Isnt it easier to make one - RoleMiddlleware or whatever and make the same?
@laraphant7 ай бұрын
I agree with you
@nitrox-car6 ай бұрын
Hello, how do I fix this error App\Http\Middleware\Normal::handle(): Return value must be of type Symfony\Component\HttpFoundation\Response, none returned?
@renznormanpalma63126 ай бұрын
can I make a 1 middleware for all? all the codes are almost the same for the middleware you've created.
@laraphant6 ай бұрын
Yes, that is the recommended way
@nzproduction89197 ай бұрын
I got the error: Target class [app\Http\Middleware\Admin] does not exist. Any help is appricated
@gyangach74938 ай бұрын
i use this but in blade code does not work... i use simple blade
@laraphant8 ай бұрын
Your approach will definitely be different in this case