Watching this movie two years later after I finished my project with Jetstream... I see I did make things a bit like you. I really enjoy Jetstream as it's easy to extend functionalities, including queuing Fortify mails easily, or just overriding default user table, etc... it allows you to cut to a few hours what would take days and do it securely. I did easily override the route names as well and got them translated in french. Really powerful tool indeed. Developing in the TALL stack is a pleasure for me.
Brilliant example which I've implemented in my website. Had to make a few changes to accomodate teams but the rest was perfect. Thanks for saving me hours of work!
Want more videos about Jetstream? My full 2-hour course of live-coding a Jetstream project: laraveldaily.teachable.com/p/laravel-jetstream-livewire-project?
i don't know why i've got this error when i try to register a user SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`myproject`.`role_user`, CONSTRAINT `role_user_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE) (SQL: insert into `role_user` (`role_id`, `user_id`) values (2, 7))
I don't think it would be too different from this example, it would be the same @can() in Blade, and hasPermission in middleware. It's not about Jetstream at all.
So getting use to Jetstream; was wondering if there is any way you would consider doing a class covering all of this, but in a bit more detail? And how about installing a template in the front end?
I don't see the nav links on Admin dashboard, and I am getting this error when I try to register a user "SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`promedic`.`role_user`, CONSTRAINT `role_user_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE) (SQL: insert into `role_user` (`role_id`, `user_id`) values (2, 2))"
thanks for making this helpful video,but i have question i make allpossible this to admin access the task but when i make this condition @can(task_access) then in admin control it return false why?
sir on routing issue why did you uses resource(name:'',etc) code .. i tried it but on my side on the name its saying unexpected syntax ... why am lost?
Hi, a error Manifest appear wend publish: "php artisan vendor:publish --tag=jetstream-views" the suggestion to fix this issue is: Missing Mix Manifest File Error: The Mix manifest does not exist. (View: D:\Software\App\WS32\www\Resolut\Portal\Engine esources\views\layouts\guest.blade.php) Did you forget to run npm install && npm run dev?
Jetstream is supposed to save time, but having to learn it all, and be forced to do things certain ways can cost a lot of time also. When there are issues, there's always the need to figure out how to exactly do something... can't just try it a different way like when creating own code. I use Jetstream sometimes, but I still dislike some things with it even though I've got some projects with it.
Haven't tried it personally. Those are actually different topics: roles/permissions are about access to some function or menu item, and teams are about access to the entry of that particular team, so multi-tenancy. Not sure, as I said, haven't tried Jetstream with teams.
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`adcity`.`role_user`, CONSTRAINT `role_user_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE) (SQL: insert into `role_user` (`role_id`, `user_id`) values (2, 3)) help me with this
I find the issue with this and other videos by this creator is he copies code from somewhere (which we all do) then turns around and says we need to add updates to the code we copied, then clips to the finished code but doesnt see what or why. It would be nice to see an expanded video of what he is doing so the logic of why is made clear
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`usersexam`.`role_user`, CONSTRAINT `role_user_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE) (SQL: insert into `role_user` (`role_id`, `user_id`) values (2, 3)) I need help on resolving this
I tried to view components like this, but its getting errors. If I have index.blade.php file in users directory I need to add jet-component to render user list(Grid). For example I need to render users-grid.blade.php in index.blade.php using Can you please guide?
You need to actually create the full component yourself, it's not just like you write x-jet-anything and it will magically work. Please read the official docs about Blade components.
Hi Sir, i am new in Laravel. I am trying to apply Laravel 8 and Jetstream, yet I found this video. I did enable the Jetstream Teams features and when I trying to add this user roles permissions features, I ve got an error. Can you show or guide what makes the default user registration fails, and adding users from list saving the password without hash?
Good day. Thank you for the tutorial, it really helped me a lot. I have last question, If I will add some tab/module in the system aside from Task CRUD, for instance its Product CRUD, should I add modify the middleware and roles & permission specifications to hide the new crud that I created? or the new crud will have permission automatically?
If I use Laravel Jetstream in my web development project. At the same time, Could i use css framework bootstrap? I want to use Laravel Jetstream for beautiful authentication design and functionalities. But I will use css framework bootstrap for frontend design. Hopefully I can explain to everyone what I want to do.
I need some little help i just download the repository and its fine what im worried is that the TASK and USERS is not showing in the dashboard what should i do sir...
i have also received an error from register : SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`laravel`.`role_user`, CONSTRAINT `role_user_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE) (SQL: insert into `role_user` (`role_id`, `user_id`) values (2, 2))
Sorry I don't have time unfortunately for personal debugging, from your error it's not clear what you misconfigured. Or the repository may be really old by this point, the video is from a few years ago, haven't checked it since then.
It's impossible to make a video about ALL best practices, look at how many of them there are, I recommend this repository: github.com/alexeymezenin/laravel-best-practices
Sir, I want to ask, where is the login controller in laravel 8, I want to add a alert success when the user successfully logs in and redirects to the dashboard page.?
@@LaravelDaily Yes, you're right. Don't mind me. Spoke too soon. I thought the user management features you were referring to came with Jetstream itself. Now I see you coded that yourself. Thanks.
I learned "request()->routeIs('route_name')". Is it standard Laravel? Cooool. Mr. Korop I have a question: may I write "User::create($fields)->roles()->attach([1,2])"? User::create returns the user, so why the second row? Readability? :)
I don't think it would work but maybe, not sure. And in that case, we need to return the user, from what I remember, so we need that variable. And yes, routeIs is default Laravel.
@@LaravelDaily Thanks I got it. But I am a complete beginner so I'm lost whenever you don't go through the steps, especially after you add the table for the in 'Tasks'. I can figure out that I can copy and paste code from the repo, but I am not sure about anything from 11:24 onwards where you create the UserController since you don't show any steps in the terminal from that point. I am trying to create a project which is a Medical Web app, but haven't made any progress at all to meet my first milestone as I am totally new to Laravel. My first milestone is to create the dashboard for Admin, Doctor, Patient with the roles and permissions. For example, Doctors will have permission to add medical data to the database, and users can search medical info and stuff like that, just like a regular medical app.
@@andreallen6823 ok I understand now, but sorry this channel is not for complete beginners in Laravel, I don't want to stop and explain every piece, that would make my videos 1-hour long.
I’m creating a language school management platform to learn more Laravel, I am up and running with Jetstream with Teams. I need - super admin (god mode) - teachers - companies - students - managers (view all students and reports) - courses - teachers members - students members I was thinking of using the Teams feature in the place of Companies in my example, but is this a good idea or should I just start from scratch?
Was enjoying the tutorial however I found 2 issues so far 1) Instead of Navigation-dropdown blade I have Navigation-menu blade. 2 On adding the route I am getting a syntax error with following: Route::resource(name:'tasks', controller:\App\Http\Controllers\TaskController::class); Its quite difficult to follow the video at times
I corrected the syntax error following the sytnax on github repository i,e. Route::resource('tasks', \App\Http\Controllers\TaskController::class); however I do not have Tasks on the menu even tho have made identical changes to the Navigation-menu blade
Have now managed to log in with Task Menu displayed. The 2 earlier points I referred to are still valid, i.e. Navigation-menu blade rther than Navigation-dropdown and route syntax used for TaskController when following video
Having a bit of a problem when I create a new user the user password is not getting hashed. The input in to the database is just what is entered in the create form.
@@malithsenanayakentgl-1052 You would add that wherever you are saving the password to the database. So, for example if you were in the users controller create method, it might look like this: public function create(Request $request, User $users){ $new_user = $users->create(['name' => $request->name, 'password' => bcrypt($request->password)]); } I used bcrypt() but Hash::Make is the same thing.
I really like how laravel 8 looks and I wish to use it someday. I don’t like the blade components, how the controller calls on web.php file is and other things. Is there a way to upgrade/do a fresh install of laravel 8 while keeping settings from laravel 7? P.S: I am well familiar with laravel 7 and using bootstrap
Yes it's totally possible to upgrade to Laravel 8 without using any Jetstream, Blade components or new routes. But, of course, I can't explain all the details of that in one TH-cam comment, please read official upgrade guides.
@@LaravelDaily i try jetstrap but it work fine inside Jetstream files when i try to use Bootstrap outside the Jetstream like i create a view name as contact. Blade. Php and paste Bootstrap form inside it, it wasn't work😢
In this case, admin creates the user with password, but you can change it to the invitation system where user sets their own password. Here's a demo video: th-cam.com/video/GMeP793EC0o/w-d-xo.html
Once tailwind gets more mainstream and you start finding more and more tailwind headless components , honestly tailwind will provide better and faster flexibility for customization, although I haven’t seen BS5 in deep so maybe I can be mistaken here.
Dude what the hell? You started really good with tasks but at the moment of users and permisions you went from 10 to 100, I can't reproduce what you did there :( I'm giving my best to do what you did there now lol
From 10 to 100? Where are you struggling exactly? And the repository is available, the link is in the description of the video, you can check the final code.
@@PovilasKorop I tried to do this all by myself instead of downloading and installed your repository, well now I'm succeeding understanding everything (Yay!). But I have one problem on creating users from the admin, it isn't hashing the passwords, so I put a hash in the middle way to do solve this problem but I'm not sure if you forgot to do this or if this is a problem from me. Thanks for your hard work dude!
Already have a few videos on that: th-cam.com/video/NCEJiMsJVLs/w-d-xo.html th-cam.com/video/8aN6d8YT5AI/w-d-xo.html th-cam.com/video/o5WJIS9yWCo/w-d-xo.html
My route look like this. Route::get('/', function () { return view('welcome'); }); Route::middleware([ 'auth:sanctum', config('jetstream.auth_session'), 'verified' ])->group(function () { Route::get('/dashboard', function () { return view('dashboard'); })->name('dashboard'); }); //I add this Route::resource(name:'tasks', controller: \App\Http\Controllers\TasksController::class); //but i found an error. I create new controller named TasksController. I follow all step in video. any solution? ParseError syntax error, unexpected ':', expecting ')'
Hello sir, can you make a video on how to use a different dashboard if the user is not admin? where that specific user can only manage his own data based on his user id. User Dashboard will show only his profile information and anything that belongs his own user_id. Can you please make a video on how to do this. Thank you again for your excellent tutorials.
That thing is called multi-tenancy, here's one of my videos about it: th-cam.com/video/nCiNqboYFVQ/w-d-xo.html (also you can google "multi tenancy laravel")
@@PovilasKorop Thank you sir, I watch the video and but what I need is if I am admin user, so see all hotels and booking. Can you show how to do that as well. Thank you
Hey Sir, could you remind me about multitenant (user) series that you had done sometime back? I am facing issue with laravel 8 multi user login, specially regarding redirect to different home for each user. Why different home? Ans: each user type eg admin and employee, manager will have different homes and url to logon, www.empwork/admin will point to admin.home and employee will point to emp.home, each user type has to have eloquent relationship that the other user types are not having, eg Admin's job is to control general office administration tasks whereas employees has roles and each role has certain set of duties.... Fun having complex projects!
Don't remember about the "series", but this method worked a while ago: laraveldaily.com/redirect-login-register-add-method/ But if you use Fortify in Laravel 8, that method feature is not implemented, there's an issue opened that you can follow: github.com/laravel/fortify/issues/77 (or try to submit a Pull Request yourself?) Of course, you may redirect everyone to the same page, and then inside of controller for that page make a check and make another redirect to wherever you want.
@@PovilasKorop protected function redirectTo() { if (auth()->user()->role_id == 2) { return '/emp'; } else return '/home'; } did not work and not using jetstream
@@manishkl1 did you add it to LoginController? Or to AppServiceProvider? Try both. If it doesn't work, then it means this is disabled in Laravel 8 for some reason.
navigation-dropdow now is navigation-menu in news versions of jetstream, but the tutorial help so much, thanks from brasil :D
right👍
Watching this movie two years later after I finished my project with Jetstream... I see I did make things a bit like you. I really enjoy Jetstream as it's easy to extend functionalities, including queuing Fortify mails easily, or just overriding default user table, etc... it allows you to cut to a few hours what would take days and do it securely. I did easily override the route names as well and got them translated in french.
Really powerful tool indeed. Developing in the TALL stack is a pleasure for me.
Hi, I'm from Argentina. I just want to say that your way of pronouncing words and teaching is very clear.
Brilliant example which I've implemented in my website. Had to make a few changes to accomodate teams but the rest was perfect. Thanks for saving me hours of work!
Want more videos about Jetstream? My full 2-hour course of live-coding a Jetstream project: laraveldaily.teachable.com/p/laravel-jetstream-livewire-project?
Thanks! this tutorial has helped me understand the stack much better, and made much easier to add features in a streamlined way.
You are my best teacher of Laravel! I am so much obliged to you!
Awesome tutorial thanks man! This is really helping me out when studying for my laravel exam
Great didn’t know about the route name.* i was doing regular php to check for the name with contains.
Thank you for this video, this is exactly what I needed for my current project
Glad I could help!
I concur. Jeststream was kind of unpleasant surprise to me at the beginning even it's a great piece of software. Thank you a lot for this video!
Спасибо большое. Даже английский начал учить)
exactly what i requested last 2week. thanks for tutorial.
Excellent tutorial. Thank you loads :)
very useful, but how could I add a new role later? I already added the permission roles but it did not accept them
Subscribed!! I need a teacher like you. Thank You Very Much Sir!!
when i try to create or edit task i get 403 forbidden error.
me too
I am the subscriber No. 100,000 congratulation!!
i don't know why i've got this error when i try to register a user
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`myproject`.`role_user`, CONSTRAINT `role_user_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE) (SQL: insert into `role_user` (`role_id`, `user_id`) values (2, 7))
Best teacher ever!
You help me so much, I love your videos
Hi @Povilas, could you show an example of laravel-permission + jetstream ?
I don't think it would be too different from this example, it would be the same @can() in Blade, and hasPermission in middleware. It's not about Jetstream at all.
So getting use to Jetstream; was wondering if there is any way you would consider doing a class covering all of this, but in a bit more detail? And how about installing a template in the front end?
the password won't get hashed for me when i create a user, it get stored in plane text
your channel is very very useful
Many thanks for this.
Old data does not work when you reuse x-jet-input in your own custom forms. Can you show how to achieve this?
I don't see the nav links on Admin dashboard, and I am getting this error when I try to register a user "SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`promedic`.`role_user`, CONSTRAINT `role_user_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE) (SQL: insert into `role_user` (`role_id`, `user_id`) values (2, 2))"
thanks for making this helpful video,but i have question i make allpossible this to admin access the task but when i make this condition @can(task_access) then in admin control it return false why?
sir on routing issue why did you uses resource(name:'',etc) code .. i tried it but on my side on the name its saying unexpected syntax ... why am lost?
Thanks a lot. Very helpful.
Great video, thanks a lot!!
Help me plese!!!
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`laravel_tester`.`role_user`, CONSTRAINT `role_user_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE) (SQL: insert into `role_user` (`role_id`, `user_id`) values (2, 5))
Hi, a error Manifest appear wend publish: "php artisan vendor:publish --tag=jetstream-views" the suggestion to fix this issue is: Missing Mix Manifest File
Error:
The Mix manifest does not exist. (View: D:\Software\App\WS32\www\Resolut\Portal\Engine
esources\views\layouts\guest.blade.php)
Did you forget to run npm install && npm run dev?
i have some issues like this "General error: 1364 Field 'description' doesn't have a default value"
please help me to solve it
What text editor is this .. go to definition inbuilt or not?
Great Content! Thank You for share. Helped me a lot... ;)
I tried this and it doesn't work any more, any new ways to do this or a solution for the new updated version
Jetstream is supposed to save time, but having to learn it all, and be forced to do things certain ways can cost a lot of time also. When there are issues, there's always the need to figure out how to exactly do something... can't just try it a different way like when creating own code. I use Jetstream sometimes, but I still dislike some things with it even though I've got some projects with it.
I'm a developer, I can't even interpret all the code that was in my system because of these things
is it possible to use jetstream teams to manage roles and permission ? thank you!
Haven't tried it personally. Those are actually different topics: roles/permissions are about access to some function or menu item, and teams are about access to the entry of that particular team, so multi-tenancy. Not sure, as I said, haven't tried Jetstream with teams.
Thanks for this much needed tutorial. I tried your code but seems i'm no longer admin and cant access other pages. how to change user to admin?
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`adcity`.`role_user`, CONSTRAINT `role_user_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE) (SQL: insert into `role_user` (`role_id`, `user_id`) values (2, 3)) help me with this
AWESOME as usually. Can't I use the middleware(['auth:sanctum']) to auth the user?
hello does that mean we create a separate admin pages
hi, does the livewire comes with vue?
Very Thx you 👍
What is the purpose of teams? I always assumed it was for role management but what would be the usecase for using jetstream with teams enabled
Teams are companies, with multiple users in each team/company. Those users may or may not have roles.
I find the issue with this and other videos by this creator is he copies code from somewhere (which we all do) then turns around and says we need to add updates to the code we copied, then clips to the finished code but doesnt see what or why. It would be nice to see an expanded video of what he is doing so the logic of why is made clear
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`usersexam`.`role_user`, CONSTRAINT `role_user_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE) (SQL: insert into `role_user` (`role_id`, `user_id`) values (2, 3)) I need help on resolving this
I tried to view components like this, but its getting errors.
If I have index.blade.php file in users directory I need to add jet-component to render user list(Grid).
For example I need to render users-grid.blade.php in index.blade.php using
Can you please guide?
You need to actually create the full component yourself, it's not just like you write x-jet-anything and it will magically work. Please read the official docs about Blade components.
Very helpful thanks!...
Hi Sir, i am new in Laravel. I am trying to apply Laravel 8 and Jetstream, yet I found this video. I did enable the Jetstream Teams features and when I trying to add this user roles permissions features, I ve got an error. Can you show or guide what makes the default user registration fails, and adding users from list saving the password without hash?
Will this work in a similar fashion for Breeze?
I did the same and the password doesnt hash, and i cant create more than 1 user with the same role, pls help
Nice video
Good day. Thank you for the tutorial, it really helped me a lot. I have last question, If I will add some tab/module in the system aside from Task CRUD, for instance its Product CRUD, should I add modify the middleware and roles & permission specifications to hide the new crud that I created? or the new crud will have permission automatically?
No, permissions don't come automatically, you need to create them manually yourself.
@@PovilasKorop Noted. Thank you :)
I was hoping you would use the roles built into jetstream.
how can i access the admin panel sir
If I use Laravel Jetstream in my web development project. At the same time, Could i use css framework bootstrap? I want to use Laravel Jetstream for beautiful authentication design and functionalities. But I will use css framework bootstrap for frontend design. Hopefully I can explain to everyone what I want to do.
How SPA method works on jetstream ??
can i use has role in the controller?
Clear!
I need some little help i just download the repository and its fine what im worried is that the TASK and USERS is not showing in the dashboard what should i do sir...
drive.google.com/file/d/1Wti3yxvwz7ZGQQ3G0Jii9FwO5N7D9fdm/view?usp=sharing
please reply Laravel Daily
i have also received an error from register :
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`laravel`.`role_user`, CONSTRAINT `role_user_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE) (SQL: insert into `role_user` (`role_id`, `user_id`) values (2, 2))
Sorry I don't have time unfortunately for personal debugging, from your error it's not clear what you misconfigured.
Or the repository may be really old by this point, the video is from a few years ago, haven't checked it since then.
Hi Povlias!
It would be really nice if you could make a video about laravel best practices.
Thanks!
It's impossible to make a video about ALL best practices, look at how many of them there are, I recommend this repository: github.com/alexeymezenin/laravel-best-practices
Sir, I want to ask, where is the login controller in laravel 8, I want to add a alert success when the user successfully logs in and redirects to the dashboard page.?
There's no Login controller in default Laravel 8, it depends on which starter kit you use - Breeze, Jetstream, UI or other.
@@LaravelDaily so, where is the position, i have to use alert in Jetstream
Sorry I can't answer that in a TH-cam comment, you need to look at Jetstream docs and the code inside.
How do you store your CRUD data?
Hello, what plug-ins are installed in your Google browser?
Visible ones: Pocket, Buffer, Trello, Fake Filler, Lastpass, Todoist, Loom, Adblock
How he open the 'search box'?
The roles and permissions part is different in the present Jetstream version. They now use teams. How can I implement the roles and permissions now?
From what I remember, you can disable teams at the installation moment.
@@LaravelDaily Yes, you're right. Don't mind me. Spoke too soon. I thought the user management features you were referring to came with Jetstream itself. Now I see you coded that yourself. Thanks.
I agree with you. I was also uncomfortable to use jetstream
do you use the spatie package in your video?
No, it's custom code, without packages.
@@PovilasKorop owhh well, thanks for your response :)
I learned "request()->routeIs('route_name')". Is it standard Laravel? Cooool.
Mr. Korop I have a question: may I write "User::create($fields)->roles()->attach([1,2])"? User::create returns the user, so why the second row? Readability? :)
I don't think it would work but maybe, not sure. And in that case, we need to return the user, from what I remember, so we need that variable.
And yes, routeIs is default Laravel.
@@PovilasKorop Great, thanks!
thanks for tutorial :D
i couldn't find navigation-dropdown ???
Hello sir
can you help me out with creating a curd method in Laravel jetstream on SPA base application
By SPA you mean the Inertia stack? Sorry I haven't worked with Inertia, I prefer Livewire.
Why in your video give the vendor folder but in the repository files there is not that folder
Vendor isn't pushed to the repository, it's ignored in gitignore. To get the vendor, run "composer install".
help me with this Undefined class constant 'HTTP_FORBIDDEN please .. am getting this when am press create new task
I am getting this problem "Target class [App\Http\Controllers\App\Http\Controllers\TaskController] does not exist."
Because this part App\Http\Controllers\ is repeated twice. If you add "use" statement on top, you don't need to use full path in the route statement.
@@LaravelDaily Thanks I got it. But I am a complete beginner so I'm lost whenever you don't go through the steps, especially after you add the table for the in 'Tasks'. I can figure out that I can copy and paste code from the repo, but I am not sure about anything from 11:24 onwards where you create the UserController since you don't show any steps in the terminal from that point. I am trying to create a project which is a Medical Web app, but haven't made any progress at all to meet my first milestone as I am totally new to Laravel. My first milestone is to create the dashboard for Admin, Doctor, Patient with the roles and permissions. For example, Doctors will have permission to add medical data to the database, and users can search medical info and stuff like that, just like a regular medical app.
@@andreallen6823 ok I understand now, but sorry this channel is not for complete beginners in Laravel, I don't want to stop and explain every piece, that would make my videos 1-hour long.
I’m creating a language school management platform to learn more Laravel, I am up and running with Jetstream with Teams.
I need
- super admin (god mode)
- teachers
- companies
- students
- managers (view all students and reports)
- courses
- teachers members
- students members
I was thinking of using the Teams feature in the place of Companies in my example, but is this a good idea or should I just start from scratch?
The only way to answer this question is to try and use Teams and see if it fits, you will see only later if there are any issues.
good tutorial thankss :)
Thanks.
Gg man 🔥👏🏼
Was enjoying the tutorial however I found 2 issues so far
1) Instead of Navigation-dropdown blade I have Navigation-menu blade. 2 On adding the route I am getting a syntax error with following:
Route::resource(name:'tasks', controller:\App\Http\Controllers\TaskController::class); Its quite difficult to follow the video at times
I corrected the syntax error following the sytnax on github repository
i,e. Route::resource('tasks', \App\Http\Controllers\TaskController::class); however I do not have Tasks on the menu even tho have made identical changes to the Navigation-menu blade
Have now managed to log in with Task Menu displayed. The 2 earlier points I referred to are still valid, i.e. Navigation-menu blade rther than Navigation-dropdown and route syntax used for TaskController when following video
Having a bit of a problem when I create a new user the user password is not getting hashed. The input in to the database is just what is entered in the create form.
use Hash::Make('password')
@@KarthikMadathil in which folder this code should be placed? please help...
@@malithsenanayakentgl-1052 not in any folder ..
you must hash the request password from the controller before inserting
@@malithsenanayakentgl-1052 You would add that wherever you are saving the password to the database. So, for example if you were in the users controller create method, it might look like this:
public function create(Request $request, User $users){ $new_user = $users->create(['name' => $request->name, 'password' => bcrypt($request->password)]); }
I used bcrypt() but Hash::Make is the same thing.
I really like how laravel 8 looks and I wish to use it someday. I don’t like the blade components, how the controller calls on web.php file is and other things.
Is there a way to upgrade/do a fresh install of laravel 8 while keeping settings from laravel 7?
P.S: I am well familiar with laravel 7 and using bootstrap
Yes it's totally possible to upgrade to Laravel 8 without using any Jetstream, Blade components or new routes. But, of course, I can't explain all the details of that in one TH-cam comment, please read official upgrade guides.
Decided to shoot a full video with a demo of upgrading, here you go: th-cam.com/video/mPBkYdrOEdQ/w-d-xo.html
@@PovilasKorop Thanks a lot!
thanks!
bootstrap is not working in laravel 8,tailwind is ok but its little bit confusion so how can we use bootstrap inside laravel 8 project
You can still use Bootstrap in Laravel 8, with the same package Laravel UI.
Or, there's also JetStrap: th-cam.com/video/Pd7EF2rkyOM/w-d-xo.html
Thanks sir, 🙂
Is there any plugin or extension for vs code like laravel-idea for php strom?
I don't use VS Code, so no idea.
@@LaravelDaily i try jetstrap but it work fine inside Jetstream files when i try to use Bootstrap outside the Jetstream like i create a view name as contact. Blade. Php and paste Bootstrap form inside it, it wasn't work😢
how to change the jetstream logo ???
It is in authentication-card-logo.blade.php component:
Read about publishable components here: jetstream.laravel.com/2.x/stacks/livewire.html#components
anyone know whats plugin they use when he click dashboard is direct to dashboard file?
what code editor do you have?
@@MrMoorewi vscode, this plugin just work on php stream?
@@muhammadsabiil3482 Use "laravel goto view" plugin
@@MrMoorewi thanks, btw this is laravel 8?
@@muhammadsabiil3482 yes
inertia version of this video please
Hello, as I understood from your video, can the admin know the user password?
In this case, admin creates the user with password, but you can change it to the invitation system where user sets their own password. Here's a demo video: th-cam.com/video/GMeP793EC0o/w-d-xo.html
Thank you so much
Which is better tailwind or bootstrap
Whatever you prefer personally.
Once tailwind gets more mainstream and you start finding more and more tailwind headless components , honestly tailwind will provide better and faster flexibility for customization, although I haven’t seen BS5 in deep so maybe I can be mistaken here.
why i got 403 forbidden
Dude what the hell? You started really good with tasks but at the moment of users and permisions you went from 10 to 100, I can't reproduce what you did there :(
I'm giving my best to do what you did there now lol
From 10 to 100? Where are you struggling exactly? And the repository is available, the link is in the description of the video, you can check the final code.
@@PovilasKorop I tried to do this all by myself instead of downloading and installed your repository, well now I'm succeeding understanding everything (Yay!).
But I have one problem on creating users from the admin, it isn't hashing the passwords, so I put a hash in the middle way to do solve this problem but I'm not sure if you forgot to do this or if this is a problem from me.
Thanks for your hard work dude!
Hi, please make video tutorial how to configure phpstorm like your.
Already have a few videos on that:
th-cam.com/video/NCEJiMsJVLs/w-d-xo.html
th-cam.com/video/8aN6d8YT5AI/w-d-xo.html
th-cam.com/video/o5WJIS9yWCo/w-d-xo.html
Gracias
Love you way on cut off "behind the scene" stuffs, just focus on a bigger picture.
My route look like this.
Route::get('/', function () {
return view('welcome');
});
Route::middleware([
'auth:sanctum',
config('jetstream.auth_session'),
'verified'
])->group(function () {
Route::get('/dashboard', function () {
return view('dashboard');
})->name('dashboard');
});
//I add this
Route::resource(name:'tasks', controller: \App\Http\Controllers\TasksController::class);
//but i found an error. I create new controller named TasksController. I follow all step in video. any solution?
ParseError
syntax error, unexpected ':', expecting ')'
That word "controller:" is a hint from my PhpStorm, it's invisible, it's not part of the code.
@@LaravelDaily Thanks Sir, I'll try again
Hello sir, can you make a video on how to use a different dashboard if the user is not admin? where that specific user can only manage his own data based on his user id. User Dashboard will show only his profile information and anything that belongs his own user_id. Can you please make a video on how to do this.
Thank you again for your excellent tutorials.
That thing is called multi-tenancy, here's one of my videos about it: th-cam.com/video/nCiNqboYFVQ/w-d-xo.html (also you can google "multi tenancy laravel")
@@PovilasKorop Thank you so much. ❤
@@PovilasKorop Thank you sir, I watch the video and but what I need is if I am admin user, so see all hotels and booking. Can you show how to do that as well. Thank you
@@davidsonzed just don't use multi-tenancy on queries for the admin. Sorry I can't shoot a video for your specific individual situation.
Hey Sir, could you remind me about multitenant (user) series that you had done sometime back? I am facing issue with laravel 8 multi user login, specially regarding redirect to different home for each user. Why different home? Ans: each user type eg admin and employee, manager will have different homes and url to logon, www.empwork/admin will point to admin.home and employee will point to emp.home, each user type has to have eloquent relationship that the other user types are not having, eg Admin's job is to control general office administration tasks whereas employees has roles and each role has certain set of duties.... Fun having complex projects!
Don't remember about the "series", but this method worked a while ago: laraveldaily.com/redirect-login-register-add-method/
But if you use Fortify in Laravel 8, that method feature is not implemented, there's an issue opened that you can follow: github.com/laravel/fortify/issues/77 (or try to submit a Pull Request yourself?)
Of course, you may redirect everyone to the same page, and then inside of controller for that page make a check and make another redirect to wherever you want.
@@PovilasKorop protected function redirectTo()
{
if (auth()->user()->role_id == 2) {
return '/emp';
}
else
return '/home';
}
did not work and not using jetstream
@@manishkl1 so what are you using? Laravel UI? Or your own custom register form/controller? Sorry, I can't debug your individual situation for you.
@@PovilasKorop Laravel UI
@@manishkl1 did you add it to LoginController? Or to AppServiceProvider? Try both. If it doesn't work, then it means this is disabled in Laravel 8 for some reason.
nice