CRUD for Roles - Build an Advanced Blog/CMS (Episode 14)

  Рет қаралды 15,376

DevMarketer

DevMarketer

Күн бұрын

Пікірлер: 44
@NickyKeyse
@NickyKeyse 7 жыл бұрын
Great video, specially as you are back in your little window so we can keep an eye on you and you've remembered to record the right screen this time :-) Wow, what a great series this is, thank you Jay x
@adelshokry8661
@adelshokry8661 7 жыл бұрын
100% Wooooow, speedy uploading is much appreciate it.
@roniestein
@roniestein 7 жыл бұрын
Hi Alex. if you want prefer the findOrFail calls to the where ('id', $id) you just reverse the order Role::with('permissions')->findOrFail($id); Cheers
@AbhimanyuNaikareWebDeveloper
@AbhimanyuNaikareWebDeveloper 6 жыл бұрын
I could not get the edit roles checkbox functionality working! All the permissions are still same as before editing. And in the console, clicking the checkbox does not change root array number.
@caz338
@caz338 5 жыл бұрын
For me, I was missing the colon in the input value -
@moe-alhakeem
@moe-alhakeem 7 жыл бұрын
hey guys, the drop down menu for the top navigation works well with chrome but doesn't with firefox, anyone else got this problem?
@karmendra1984
@karmendra1984 7 жыл бұрын
This is super cool, I learnt everything about laratrust, one thing I really need to understand is, how "Team" thing work in laratrust. If you could make an individual video explaining team feature in laratrust it would be great.
@uraniumore7306
@uraniumore7306 6 жыл бұрын
why is the model $role able to access the permissions table? it is because it is related by default?
@ahmedfathy3720
@ahmedfathy3720 6 жыл бұрын
This is awesome Alex ... thank you so so much for your effort I have an problem here the colors not displayed correectly as yours .. the primary button looks white not grey .. the list items hover not green .. its light grey ... any one can help me fixing that !!?
@MehdiMirabi
@MehdiMirabi 7 жыл бұрын
Hi Alex. first thanks for your teaching. I wrote all of related code of checkbox and radio tag but after that they didn't show. what is the problem?
@jebbush2964
@jebbush2964 7 жыл бұрын
Excellent video, I am really grateful for your efforts.
@devKazuto
@devKazuto 7 жыл бұрын
If I try to view a role it's always displaying "Superadministrator" for me even though the return view redirects me to the right id.
@1lucak1
@1lucak1 7 жыл бұрын
Now it's slowly getting interesting regarding the ACLs :-)
@tanhaishi
@tanhaishi 7 жыл бұрын
good to c u back again
@winmodif
@winmodif 7 жыл бұрын
Can someone explain to me what code I need in order to get the right radiobox selected depending if the value of the column in the database is "0" or "1"? I tried all sorts of stuff but I can't get it to work. Thx!
@dimapindrik7733
@dimapindrik7733 7 жыл бұрын
I don't get it.. why the first Role::findOrFail($id) is not good? is it to reduce the queries?
@megaheinhtetzaw
@megaheinhtetzaw 7 жыл бұрын
Hey could u tell me the laravel version you have used?
@AwaisAli-jy3cj
@AwaisAli-jy3cj 5 жыл бұрын
hey there if you're having trouble while editing the role (not getting checked boxes automatically ) it's because buefy documentation is changed for b-checkbox-group so all you need to do is just delete b-checkbox-group and change custom-value => native-value in edit and create page just like this @foreach ($permissions as $permission) {{$permission->display_name}} ({{$permission->description}}) @endforeach
@patmull1
@patmull1 5 жыл бұрын
You are the beast man!!!! Thanks a lot!
@dadev3668
@dadev3668 7 жыл бұрын
Again thanks for all this information shared with us I do have one question again shouldnt users be able to delete their profiles in any app in production ?
@Mark-ev1ge
@Mark-ev1ge 5 жыл бұрын
Use (only in update) $role->syncPermissions($request->permissions, true); In stead of $role->syncPermissions($request->permissions; It's kind of the same and laravel's sync() function, when the 2nd parameter is set to true it makes sure it overrides existing relations.
@olatunjilawal1204
@olatunjilawal1204 7 жыл бұрын
I am getting this error with my vue [Vue warn]: Property or method "permissionType" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option. I am confuse how do i solve this problem. Its been a problem for always
@ДенисЦенов-м4й
@ДенисЦенов-м4й 7 жыл бұрын
Hi. Your app.js file (resources/assets/js/app.js) have to look like this ---> require('./bootstrap'); window.Vue = require('vue'); import Buefy from 'buefy'; Vue.use(Buefy); //Vue.component('example', require('./components/Example.vue')); $(document).ready(function(){ $('button.dropdown').hover(function(e){ $(this).toggleClass('is-open'); }); });
@mindaugaspetraitis4055
@mindaugaspetraitis4055 7 жыл бұрын
Have you solved it ? I have a same problem, please help me ,sir.
@bpraia
@bpraia 6 жыл бұрын
getting "Vue is not defined" if I instantiate it in the blade file instead of app.js
@sithidethbouasavanh5558
@sithidethbouasavanh5558 7 жыл бұрын
Thank you for the debugging process.
@Dion_P
@Dion_P 4 жыл бұрын
If you don't want (or can't) use vue to check the boxes you can use: $role->permissions->pluck('name')->contains($permission->name). This outputs a boolean...
@entrymaar
@entrymaar 7 жыл бұрын
sir how i remove a role that i uncheked ?
@Mark-ev1ge
@Mark-ev1ge 5 жыл бұрын
Use $role->syncPermissions($request->permissions, true); In stead of $role->syncPermissions($request->permissions; It's kind of the same and laravel's sync() function, when the 2nd parameter is set to true it makes sure it overrides existing relations.
@Sinrise
@Sinrise 6 жыл бұрын
I feel like I missed a video where he describes how the relationship between Permissions and Roles are created and maintained...
@bernardchisumo4054
@bernardchisumo4054 7 жыл бұрын
Hi Grea t video . Qns: what is eager loading?
@braticbokan1228
@braticbokan1228 7 жыл бұрын
FatalThrowableError Class name must be a valid object or a string with my role->permissions relationship help anyone?
@VIKASH1870
@VIKASH1870 7 жыл бұрын
Few days ago i had that same problem with eager loading . As solution i figured out a solution like $post = Post::findOrFail($id); // Or Post::find($id); $post->Tags; return $post; && er need to have relationship define in model. It was worked preety good.but i dnt know it was a good idea or not !
@mygreatjob
@mygreatjob 7 жыл бұрын
Thank you !
@milou0104
@milou0104 7 жыл бұрын
Great work, i just noticed you forgot to close on those files, and also right above it you opened tag and close it by , you did many copy/paste so they are duplicated :)
@jodeveloper08
@jodeveloper08 7 жыл бұрын
for eager Loading you could do $role = Role::findOrFail($id); $role->load('permissions');
@matheusdardenne
@matheusdardenne 6 жыл бұрын
That's lazy loading. For proper eager loading you should do $role = Role::with('permissions')->findOrFail($id);
@vinilr97
@vinilr97 7 жыл бұрын
Nice!!
@christostsangaris4785
@christostsangaris4785 6 жыл бұрын
El Professor!!!
@Cybersix6666
@Cybersix6666 7 жыл бұрын
great series, wish you had used Vue.js in it .
@NickyKeyse
@NickyKeyse 7 жыл бұрын
He has.
@IamJamesA
@IamJamesA 6 жыл бұрын
If someone don't want to use vue do this to get all selected checkbox on the Role edit controller add this : $permissions= Permission::all()->pluck('id')->toArray(); In the edit view add: id,$permissions)?'checked':''}}>
@samdeacon7910
@samdeacon7910 6 жыл бұрын
FFFFFFFF fucking b-checkbox group and radio deprecated EVERY VIDEO, Sorry not your fault a problem with changing libraries haha, videos are awesome !
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН
How to have fun with a child 🤣 Food wrap frame! #shorts
0:21
BadaBOOM!
Рет қаралды 17 МЛН
진짜✅ 아님 가짜❌???
0:21
승비니 Seungbini
Рет қаралды 10 МЛН
User CRUD - Build an Advanced Blog/CMS (Episode 12)
40:08
DevMarketer
Рет қаралды 26 М.
Early FAQ's - Build an Advanced Blog/ CMS from Start to Finish
23:30
The Most Legendary Programmers Of All Time
11:49
Aaron Jack
Рет қаралды 648 М.
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 360 М.
Стоит ли учить программирование в 2025?
18:25
Reacting to Controversial Opinions of Software Engineers
9:18
Fireship
Рет қаралды 2,2 МЛН
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,6 МЛН
8 Design Patterns | Prime Reacts
22:10
ThePrimeTime
Рет қаралды 454 М.
Ты ТОЧНО делаешь это когда БОЛЕЕШЬ 🤒
0:38
Никита Удановский
Рет қаралды 2,7 МЛН
Вы тоже заметили ?
0:28
Расул Шамоев
Рет қаралды 5 МЛН
Проверил, как вам?
0:59
Коннор
Рет қаралды 4,1 МЛН
It's not easy to think too much in this life
0:56
R-CC
Рет қаралды 103 МЛН
Would Your Prince Do This…? 🤴🏻❤️
0:37
Alan Chikin Chow
Рет қаралды 50 МЛН