Laravel Roles and Permissions Without any package in HINDI

  Рет қаралды 38,913

Ajay yadav

Ajay yadav

Күн бұрын

In this video, I have discussed Laravel roles and permissions. we have discussed the core concepts of the role and permission of laravel without using any packages
Our Playlist:
Computer Facts: • Computer facts
Source Code :
github.com/Aja...
#LaravelRolesAndPermission #RoleAndPermissions #Laravel8Roles
Please subscribe to my channel and share the videos with your friends.

Пікірлер: 68
@pavandube175
@pavandube175 3 жыл бұрын
Superb video bhai pura concept hi clear kar diya ...bas ek blog ki site start karo laravel me multi login ke sath..
@ajay-yadav
@ajay-yadav 3 жыл бұрын
Ok pavan bhai will try
@aneesbhatti8199
@aneesbhatti8199 Жыл бұрын
great video ajay bhai awesome tutorial love from pakistan thanku for this great video
@mohsinnazeer7787
@mohsinnazeer7787 3 жыл бұрын
thanku so much sir main ap key vedio ka hey wait kar rha tha..tysm ab bus VUE JS key series bana dain ap ka ehsan ho ga
@ajay-yadav
@ajay-yadav 3 жыл бұрын
जरूर भाई
@madie2659
@madie2659 2 жыл бұрын
background music na hota tou or bhi maja aata video ka..
@manishkumar-fe8rj
@manishkumar-fe8rj 3 жыл бұрын
Thank you so much sir. I waiting for this video. You are Superb 😊😊😊😂😂.
@sobanmughal35
@sobanmughal35 11 ай бұрын
hello sir in this video you did not create role_user table when i did this : $user = \Auth::user(); dd($user->roles); code in home function of controller error appeared given below: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laravel_crudapp.role_user' doesn't exist.Please help me giving this answer
@ShubhamMishra-uw9yi
@ShubhamMishra-uw9yi 10 ай бұрын
isn't Blade directive call new query every time you use it? suppose I'm using it inside a loop.
@GTAJAPAN
@GTAJAPAN 2 жыл бұрын
Sir aap un logo ke liye video bna rahe ho jinko laravel aata h harare jese ke liye bhi please series bna dijiye
@ajay-yadav
@ajay-yadav 2 жыл бұрын
sure rahul. thank you
@talk2binayak
@talk2binayak 2 жыл бұрын
Hi can u make video on user activity log for multi guard. Means Admin can see the log activity of user. And superadmin can check the log activity of user as well as different roles of the admin role.
@dannjohnrem
@dannjohnrem 2 жыл бұрын
I hope he can make a video about this topic.
@ziyadmahmoud6599
@ziyadmahmoud6599 2 жыл бұрын
Excellent! How can we make permission in middleware?
@ernirmalparkhi2195
@ernirmalparkhi2195 2 жыл бұрын
What is means ... In hasRole (... ) Please tell me sir
@muhammadshoaib4565
@muhammadshoaib4565 2 жыл бұрын
Thanks, a lot Sir ye video bhot kamal ka tha.
@ajay-yadav
@ajay-yadav 2 жыл бұрын
Thanks for watching Shoaib Bhai
@AshviniArumugan
@AshviniArumugan 6 ай бұрын
Excellent
@AkashSingh-xf6bd
@AkashSingh-xf6bd 3 жыл бұрын
Hi Ajay, I hope you are doing well and i have query regarding relationship for example i have two tables one user and another one is user_content and both have auto increment ID as primary key and i want to make a hasone relationship between them. i know it is possible foreign key relation but i my case the scenario is different, the scenario is like that i want to user_content have one column name is "phone number" and this phone number have a "varchar datatype " and i want to relate this phone number with user id mean : non foreign key -> with primary key (main key point is here both have a different data type on is Varchar and id int ) can you suggest me how is it possible
@ajay-yadav
@ajay-yadav 3 жыл бұрын
Akash, you r saying, user_id is not present in the user_content table and only phone number is available in the table to connect with users table.... But how the phone number column is related to the user_id
@AkashSingh-xf6bd
@AkashSingh-xf6bd 3 жыл бұрын
@@ajay-yadav Yes you are on right way .. please help me
@ajay-yadav
@ajay-yadav 3 жыл бұрын
@@AkashSingh-xf6bd but first help me to understand the scenario . How can you identify user's phone number without user_id in second table ???
@AkashSingh-xf6bd
@AkashSingh-xf6bd 3 жыл бұрын
@@ajay-yadav okay wait Table one is user with id and name column and Id is primary key and other table is user_contact with id and phone number's column where Id is primary key. Next is phone number have varchar (255)data type and user_ Id have int data type so if make a phone number as foreign key and make a relationship with user_id it throws error, as you know very well in foreign key relationship the data type should be Same in both column So I want one to one relationship by help of phone number (Varchar)with user_id (int)
@ajay-yadav
@ajay-yadav 3 жыл бұрын
@Akash Singh As per my understanding , Tables: users: id,name, phone_number(int) .... user_contents: id, phone_number(varchar) if this is the case then: do one thing in User.php (model ) add this line public function usercontent(){ return $this->hasOne(UserContent::class,'phone_number','phone_number'); } and test it: $user = \App\Models\User::first(); dd($user->usercontent->toArray()); One more thing.. Make phone number unique of User_content table
@meroaasu
@meroaasu 2 жыл бұрын
Thank you so much for Amazing video
@ajay-yadav
@ajay-yadav 2 жыл бұрын
Most welcome 😊
@codebyhamid
@codebyhamid Жыл бұрын
Sir agar ap virtual host bana lein to ap ko har dafa php artisan serve ki command run nahi Karni hogi
@ajay-yadav
@ajay-yadav Жыл бұрын
right ... but beginners ke liye ye helpful h ....
@durveshkumar618
@durveshkumar618 3 жыл бұрын
Sir laravel advance Api m webhooks pr video bana dijiye please
@ajay-yadav
@ajay-yadav 3 жыл бұрын
Sure
@shahzadkhan6463
@shahzadkhan6463 2 жыл бұрын
i am using laravel 9 version when i type npm install it say npm is npm' is not recognized as an internal or external command, operable program or batch file.
@ajay-yadav
@ajay-yadav 2 жыл бұрын
Install node js first
@satishrajpoot8523
@satishrajpoot8523 Жыл бұрын
sir mene rola and permission create kiya h but permission nhi h us case m error h
@mohdshahbaz574
@mohdshahbaz574 2 жыл бұрын
Thank you very much sir 😊 for covering all important concepts in one video...
@ajay-yadav
@ajay-yadav 2 жыл бұрын
Keep watching
@the.longtales
@the.longtales Жыл бұрын
How can I do this with single table and single route
@deepakprasad9480
@deepakprasad9480 2 жыл бұрын
How to manage permission from controller when role is dynamic, I want to use same controller for multiple role..
@ajay-yadav
@ajay-yadav 2 жыл бұрын
use middleware
@deepakagarwal663
@deepakagarwal663 2 жыл бұрын
why we have taken slug in roles and permission and what are its usage
@ajay-yadav
@ajay-yadav 2 жыл бұрын
Just want to separate the name and slug. slug is just like unchangeable names can be changed
@mohsinnazeer7787
@mohsinnazeer7787 3 жыл бұрын
sir Vue Js key bhy series bana dain laravel main
@ajay-yadav
@ajay-yadav 3 жыл бұрын
ok mohsin .. I'll try to create some crud operation and also later we'll add more features like login and register. aise aap ko practically sikhne me shi bhi rhega.
@mohsinnazeer7787
@mohsinnazeer7787 3 жыл бұрын
@@ajay-yadav Thanku So much Bro ☺️❤️
@miguelvascomacamo7323
@miguelvascomacamo7323 2 жыл бұрын
What about policies? Great tutorial bro
@ajay-yadav
@ajay-yadav 2 жыл бұрын
already
@mohammadawais744
@mohammadawais744 2 жыл бұрын
hi, grate work. Laravel 8 i need tutorial video and audio to show and express the code {example 4 user type (super-admin, admin, Data Entry, Data view) and assigning roles and permission also Enable, disables users} but if user register by default (user type "View") and can login based only roles, and permission to allow access pages . How to add Admin LTE 3 template [not starter one](sprite Header, footer, contents and left menu side bar) and make routes, Controller and view based on upper requirement ASAP. fresh Laravel project login & Registration Enable / Disable user assigning roles and permission add Admin LTE 3 template
@haradakin2728
@haradakin2728 2 жыл бұрын
noob
@aadrshsharma3636
@aadrshsharma3636 2 жыл бұрын
please laravel vue and inertia use jetstream ka use laravel mai btaiye plz
@ajay-yadav
@ajay-yadav 2 жыл бұрын
sure. noted , thank you
@aadrshsharma3636
@aadrshsharma3636 2 жыл бұрын
@@ajay-yadav plz jhaldi bna do na multiple auth jetstream Vue and inertia laravel
@ajay-yadav
@ajay-yadav 2 жыл бұрын
Part #1 : (Admin And User Login) kzbin.info/www/bejne/i4jRmqypm9WHo68
@gojamoja6719
@gojamoja6719 2 жыл бұрын
Thanks
@ajay-yadav
@ajay-yadav 2 жыл бұрын
Welcome
@SHADAN.__.KHAN077
@SHADAN.__.KHAN077 2 жыл бұрын
👍
@allen86333
@allen86333 2 жыл бұрын
Little explanation for the actions would be great , sometimes you are just instructing what to do but not why you are doing so . anyways , thanks . it was not great for me .
@ajay-yadav
@ajay-yadav 2 жыл бұрын
Noted , Sorry about that
@infocartsolution3651
@infocartsolution3651 2 жыл бұрын
Hi, How can contact with you ?
@ajay-yadav
@ajay-yadav 2 жыл бұрын
I've provided all the social media links in the description and also my email address.
@mohsinnazeer7787
@mohsinnazeer7787 3 жыл бұрын
sir please source code
@ajay-yadav
@ajay-yadav 3 жыл бұрын
check description
@arshrayat907
@arshrayat907 Жыл бұрын
very hard for me
@SunilYadav-tm6kt
@SunilYadav-tm6kt 2 жыл бұрын
Can we have WhatsApp group sir, Please ?
@ajay-yadav
@ajay-yadav 2 жыл бұрын
Hi sunil, U can dm me on insta, twitter, linkedin
@SunilYadav-tm6kt
@SunilYadav-tm6kt 2 жыл бұрын
@@ajay-yadav OK sure
@DHARMENDRADiwan-fe4li
@DHARMENDRADiwan-fe4li 6 ай бұрын
😢
@integrateeverything
@integrateeverything 2 жыл бұрын
your voice is not clear
@DHARMENDRADiwan-fe4li
@DHARMENDRADiwan-fe4li 6 ай бұрын
Reply sir
Laravel Roles and Permissions: All CORE Things You Need To Know
16:32
Laravel Daily
Рет қаралды 222 М.
Good teacher wows kids with practical examples #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН
Я сделала самое маленькое в мире мороженое!
00:43
Кушать Хочу
Рет қаралды 3,9 МЛН
когда не обедаешь в школе // EVA mash
00:51
EVA mash
Рет қаралды 4,4 МЛН
小蚂蚁会选到什么呢!#火影忍者 #佐助 #家庭
00:47
火影忍者一家
Рет қаралды 91 МЛН
Auth Multi Roles Login with Custom Middleware in Laravel 9
16:50
Cambo Tutorial
Рет қаралды 52 М.
Gates Authorization in Laravel (Hindi)
33:31
Geeky Shows
Рет қаралды 10 М.
Good teacher wows kids with practical examples #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН