Easily Add ACL to Laravel Without Extra Tables in Database

  Рет қаралды 11,451

Code Inspire

Code Inspire

Күн бұрын

Let's Build a Multi-Purpose Laravel + Vue Application is out now. In this series, you learn everything you need to know about Building a complete web application with Laravel and Vue js. So, I am so excited that so many of you guys like my content and keep inspiring me to create more videos. My goals is to inspire you to write better code and better applications.
Open Source At Github.
github.com/Huj...
Here are the things you will learn in this series:
How use Vue Router with Laravel
How to Install AdminLTE 3
How to Use Font Awesome 5 on Laravel
How integrate mailchimp with laravel
How to use Laravel Socialite
How to Login Using Social Media
How to Use API in Laravel
Api Auth with Laravel Passport
JWT with Laravel Passport and JavaScript Request
Vue Custom Events
Vue form with Laravel
Relational Database with Laravel
Axios and Ajax Request
ACL in Laravel
Online Users list
And much more...
Tags:
JWT with Laravel,tutorial,coding,laravel,laravel and vue js tutorial,laravel and vuejs,laravel and vue js project,laravel admin panel,laravel adminlte,laravel admin,vue js tutorial,vue js,axios,laravel application development,learn laravel 5.6,learn laravel framework,laravel crud,laravel crud tutorial,spa,laravel how to,laravel tips,coding tips,admin lte laravel 5.6,adminlte with php,laravel api,laravel passport, hosting, cloud, web hosting

Пікірлер: 34
@samdeacon7910
@samdeacon7910 6 жыл бұрын
amazing series I learnt so much!
@CodeInspire
@CodeInspire 6 жыл бұрын
glad to hear that :)
@kevintanudjaja8893
@kevintanudjaja8893 6 жыл бұрын
Thank you for your lessons!
@phpisdead
@phpisdead 2 жыл бұрын
You're best , please make updated course four vue 3 and laravel 9
@savoirmicrosystemsltd2264
@savoirmicrosystemsltd2264 5 жыл бұрын
thanks a lot , the best lessons ever
@smiftakhairul
@smiftakhairul 5 жыл бұрын
7:23 why don't you think about custom middleware as middleware prevent HTTP requests as a guard, while the major difference between Gates-Policy & Middleware defines that Gates-Policy doesn't prevent HTTP requests rather limits the access for authorization. Thats my think, please let me know, if its good idea or not!
@saimonanam
@saimonanam 6 жыл бұрын
Hujjat you beauty!
@CodeInspire
@CodeInspire 6 жыл бұрын
thanks buddy. :)
@adam192021
@adam192021 6 жыл бұрын
The BEST as always!
@averyhernandez566
@averyhernandez566 5 жыл бұрын
I am having trouble rendering the option in may blade.php where I put @can('isAdmin'). It is not showing. I already followed creating gates, same as yours. What can be the possible reason and how can I fix it? Hoping for a response, sir. Thank you
@tarunkmr145
@tarunkmr145 5 жыл бұрын
why cant we use hasRole() method to hide links or buttons instead of Gates?
@hameedkurla870
@hameedkurla870 6 жыл бұрын
Very informative, learned a lot from this series, can you please guide how can we implement workflow engine for multilevel approval hierarchy.
@CodeInspire
@CodeInspire 6 жыл бұрын
what's that. I have no idea about workflow engine !!!!
@hameedhussain6916
@hameedhussain6916 6 жыл бұрын
I mean getting a blog post approved by more than person. First reviewer then editor then last publisher.
@CodeInspire
@CodeInspire 6 жыл бұрын
well, it's possible. you can do that if you watch the videos and understand. We teach you almost the same things.
@noobblank
@noobblank 6 жыл бұрын
If I want to use the gate for two types of users. For example: if I want the admin and author to have management part, I was going to use "@can('isAdmin' || 'isAuthor')". But it's not working for me.
@CodeInspire
@CodeInspire 6 жыл бұрын
no it's not working. for that, create another gate. "isAdminOrAuthor" write the condition if the user-type is admin or author like other gates.
@elinardosilva3812
@elinardosilva3812 5 жыл бұрын
Hi thanks for series... Man i'm using JWT to autentication, and front vue. you set Passaport::router, in my case with JWT how i fix it in file that i set my GATES? please help this. Thanks so much!
@CodeInspire
@CodeInspire 5 жыл бұрын
Hi buddy, I don't know how you used JWT. we used laravel Passport because it accepts Javascript Web Token as options. Also, we have a video on ACL on Front-end. where I teach you how to secure you Vue compoments and js files. That's on the same playlist. :)
@chrissfirstmoters
@chrissfirstmoters 6 жыл бұрын
Tnx for helping us :)
@CodeInspire
@CodeInspire 6 жыл бұрын
very welcome bro :) 🙏
@AP12-7
@AP12-7 6 жыл бұрын
are there any easier way? lets say I have Author = who can delete post, edit, publish, and unpublish. While editor can only edit and publish. admin can do nothing but see it's statistic. so I will create so many function and it will grow more as the user type grows. any simpler way to do it ?
@CodeInspire
@CodeInspire 6 жыл бұрын
it's the easy way now
@AP12-7
@AP12-7 6 жыл бұрын
@@CodeInspire If I want to do some user authorization, should I go for package (spatie/laravel-permsission or JosephSilber/bouncer, between the two), or should I make my own package? what do you think?
@pathros425
@pathros425 5 жыл бұрын
@@AP12-7 There is a nice post where Spatie and Bouncer are compared: laravel-news.com/two-best-roles-permissions-packages Personally, I would pick up Spatie ... Moreover, check out those vids: kzbin.info/www/bejne/sHrKin2iqpVmmKs
@KuldeepSingh-my8ng
@KuldeepSingh-my8ng 6 жыл бұрын
Route is not protected through gate it is still working if i put it manually in url
@CodeInspire
@CodeInspire 6 жыл бұрын
Keep watching buddy. I will those in future videos :)
@KuldeepSingh-my8ng
@KuldeepSingh-my8ng 6 жыл бұрын
yeah! thanks Sir
@_what_the
@_what_the 6 жыл бұрын
Hello, thank you for all your tutorials. They are all excellent and very helpful. Today i encountered a scenario that you haven't covered yet (seen all 55 videos in this series), and that is implementing ACL (Gates and Policies) inside a vue file (i'm using vue components). In blade you can use @can but in view it won't work. Is there any way to do this? In my app.blade.php i have this: Can i do something like this: @can('isAdmin') @endcan @can('isUser') @endcan ----------- I would greatly appreciate it if you can share me your advice. Thank you once again!
@CodeInspire
@CodeInspire 6 жыл бұрын
Hey buddy, Of course there is. You didn't watch one of the video. Search for ACL Front-end in the playlist. I have a details of it
@_what_the
@_what_the 6 жыл бұрын
@@CodeInspire hello. Thank you very much. Yeah, you're right, you discussed it in the next few videos. Where can I ask you of a problem I'm facing now? Should I just post it here? Or should I send you a DM?
@jorgefraga3239
@jorgefraga3239 6 жыл бұрын
Hello dear! A question: What is the theme you use in Visual Stidio Code? Thank you very much and congratulations for the excellent material that you give us for free to all of us. Best regards
@CodeInspire
@CodeInspire 6 жыл бұрын
You're very welcome :) I use material theme. But I change sometimes. :)
@Mahmudulhasan-ts5hm
@Mahmudulhasan-ts5hm 5 жыл бұрын
thanks
Limited Access to Controllers Using ACL in Laravel
7:46
Code Inspire
Рет қаралды 10 М.
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 222 М.
Design 404 Page for  Front-End If User Doesn't Have Access
12:54
Code Inspire
Рет қаралды 9 М.
Laravel 11 in 11 hours - Laravel for Beginners Full Course
10:54:51
The Codeholic
Рет қаралды 58 М.
Laravel Tutorial - ACL (User Roles) - #4 Final Touches
9:44
Academind
Рет қаралды 40 М.
Laravel 5.7 ACL in Front-end Using Vue js
14:56
Code Inspire
Рет қаралды 20 М.
Tmux From Scratch To BEAST MODE
12:44
DevOps Toolbox
Рет қаралды 135 М.