you're the greatest. i have lots to do on my app, but how to handle authentication and security was such a worry so glad you are covering this topic 😁
@muslimparvi79814 жыл бұрын
you are just amazing thank you so much for this series
@shabeer26466 жыл бұрын
ഇത് വളരെ നല്ല ഉപകാരം ആയ വീഡിയോ ആണ് എന്നേലും vue.Js മലയാളികൾ ഉപയോഗിക്കുക ആണേൽ തീർച്ച ആയും കാണുക ഈ വീഡിയോ
@CodeInspire6 жыл бұрын
hmm No idea :D :(
@pathros4255 жыл бұрын
ഞാനും അതേ.
@pianoboy10186 жыл бұрын
What a fabulous series course,thank you!
@CodeInspire6 жыл бұрын
very welcome buddy :)
@qaisnezami17705 жыл бұрын
موفق باشی برادر
@jorembelen78804 жыл бұрын
for example i have a Role model. how to implement it in the drop down menu from vuejs?
@amrraouf35253 жыл бұрын
amazing
@zayonetcode64214 жыл бұрын
Hi! Thanks so much for your tutorial is really helpful. I do have a question, I put my app in share server but the vueJs does not work as I wanted. Problem with ACL I thing it does not recognize the auth user i do not know why? Do you have any experience on it? Because I did everything here nothing change when us v-if="$gate.IsUser()" but in the localhost works fine
@WeeLiem4 жыл бұрын
when you use window.user = @json(auth()->user()), isn't it users are allowed to change the data via browser's inspect element?
@zeusgolohor84094 жыл бұрын
Have you found a solution to this yet?
@samanrad5 жыл бұрын
Hi. Thakns for your tutorials. I use Vuejs2, Vuetify2 and Laravel 6.4 I want to build an E-commerce website (online shopping). I want to make a separeted route addresses for admin and users (with seperated templates). For example domain.com/profile/* is for just users and admins can't login to this witch their credentials. And domain.com/admin/* is for admins and the users can't access and login to that. How can I implement this approach? What is the best, safest and newest way to perform this plan based on most secure and standard logics? What API authentications should I use? Laravel passport or JWT? which one is better? I don't want to modify the blades (just one div with id) and mostly want to work on Vue templates and vue-routers, because of vuetify. Thanks again
@jitendraprajapati4174 жыл бұрын
Hi! Thanks so much for your tutorial is really helpful. can you please share how to manage frontend with this backend. please help with the management structure for the frontend.
@sebastiengarcinibusiness5 жыл бұрын
Why not limit from app.js like : import Gate from "./Gate"; Vue.prototype.$gate = new Gate(window.user); const gate = Vue.prototype.$gate; ----- { path: '/users', component: gate.isSuperAdmin() ? require('./components/Users.vue').default : false },
@jacobtb15 жыл бұрын
not a bad solution
@nicolasmesa98054 жыл бұрын
How can i do if a work with a pivot table for managing users: Users | RoleUser | Roles
@michaelikpefua7685 жыл бұрын
Please I'm just curious about this two functionality. Vue.protype.$gate = new Gate(window.user) versus window.gate = new Gate(window.user) whats the differences between using vue.prototype vs using window.gate
@mohanc7966 жыл бұрын
Thank you so much for your videos ....you are great
@tonyfrenzy6 жыл бұрын
You are so amazing, thank you so much for this series.
@CodeInspire6 жыл бұрын
you're very welcome :)
@elinardosilva38125 жыл бұрын
Hello. Very good face tutorial. I'm developing a project with vue following in its footsteps, but only difference is that I'm using API separate from the vue do you understand? So in that case how do I pass the "user" to the gate ()? to break the head in that part because only to give indefinite. THX.
@CodeInspire5 жыл бұрын
Which api your using ? Please explain more
@elinardosilva38125 жыл бұрын
@@CodeInspire hi. I'm use laravel in API but separate from front. In your exemplo vue is inside of laravel. I'm not use blade in my case. Please can help to me user this exemple but in my cenary. Thanks
@elinardosilva38125 жыл бұрын
@@CodeInspire i fix with vuex. in my store i have auth->user() with this comes a user. i import in Gate.js and do window.user = store.auth.me. now is fix my problem, but is good idea this way? thanks
@vitawina1585 жыл бұрын
Thanks alot, really help me alot
@fvasquezl5 жыл бұрын
Great
@bikashbhandari56086 жыл бұрын
u r doing nice job...keep it up
@CodeInspire6 жыл бұрын
thanks buddy :)
@iqrarhussainbuitem125 жыл бұрын
Perfect tutorials. 1 Question: At the end of master template you put @json(auth()->user()) as we know the auth()->user() is php laravel helper. how does it work in javascript tags means according to my knowledge we can't write Php inside javascript.
@CodeInspire5 жыл бұрын
Yes true. But it’s laravel. We can pass data to JavaScript and read it as JavaScript object.
@iqrarhussainbuitem125 жыл бұрын
@@CodeInspire thanx
@WebDevMatics6 жыл бұрын
Good Job ! Nice and easy. Subscribed.
@CodeInspire6 жыл бұрын
Thanks buddy :)
@adam1920216 жыл бұрын
The BEST as always!
@Raihan0044 жыл бұрын
thank you
@heyyy49875 жыл бұрын
amazing..tanks.
@achowdhury71795 жыл бұрын
Hi friend, Thanks for most helpful tutorial. I want to make sure the edit function access who is create the line & also who is admin. How it's possible. Please ...........
@markanthonyarayan98135 жыл бұрын
im getting this error Error in created hook: "TypeError: Cannot read property 'position' of undefined" found in ---> at resources/js/components/Doctors.vue
@guren20235 жыл бұрын
Does anyone have a solution for this problem? I'm using Laravel 5.8 and it's also showing this error.
Another nice tutorial, Can you show us how to handle 2 types of users. Example SuperAdmin and Admin can use the same link. Another thing is mostly tutorials on the internet shows only one table upon inserting data. I wanted to request, Can you show us how to insert data into 2-3 tables. using only the user's information because in the real world application there about 10 more entities within a user.Thanks for heping .
@CodeInspire6 жыл бұрын
Hi, sure. I can show you. that's supper easy. Just import your modal in store function. then use Model1::create([$data]); Model2::create([$data]);
@loremipsum5746 жыл бұрын
Im trying like this. @if($user->can('isAdmin') || $user->can('isAuthor')) @endif. but in inserting data in 3 tables in database I can't find clearer method.
@justinangeloperez87896 жыл бұрын
nice one thank you
@pathros4255 жыл бұрын
My overall question is, right in the Gate.js class, how do you import the currently authenticated user with relational data??? as discussed in this question (stackoverflow.com/q/54764077/1883256) ... for something like: User::with('userProfile')->find(Auth::id()); or return request()->user()->load('userProfile'); or $user->load('relation'); ?
@kevintanudjaja88936 жыл бұрын
you're the best!
@CodeInspire6 жыл бұрын
thanks buddy :)
@feranmiafrica95285 жыл бұрын
In my case the table is still not showing for admin user
@ricardoxavier54405 жыл бұрын
Hey man! unrelated, but I noticed that on users.vue, the validation for the Type dropdown isn't outputting any messages. I was trying to fix but I can't figure it out. Thanks in advance!
@jendaeliasu5 жыл бұрын
Hi, I have weird problem: I saved user's data to window.user window.user = @json(auth()->user()); console.log(window.user); // I it working, displays user's data Then in app.js I can NOT access window.user console.log(window) // it is working and I can see user variable with valid data console.log(window.user) // undefined Vue.prototype.$gate = new Gate(window.user) so in Gate.js I have undefined variable Where is the problem?
@CodeInspire5 жыл бұрын
Hi buddy, Did you export it in your gate.js ?
@CodeInspire5 жыл бұрын
Also, please show me any error if you see in console
@jendaeliasu5 жыл бұрын
I had mistake in line order. I had app.js before that @auth block. And it is working this way: @auth window.User = @json(auth()->user()); @endauth
@fikrimastor6 жыл бұрын
Nice!
@MRFunDuDe1005 жыл бұрын
if a normal user change type from /profile and make him self an admin he will be able to see everything after that how to change it
@pathros4255 жыл бұрын
Then, the select option should never display the "admin" option. Only a super admin could do that from another ultra secret interface.
@junjun22able6 жыл бұрын
Hello, I've been following your tutorial and I like it actually but in this video I want to ask is there a way where I can hide my user data. You see, when you use @json(auth()->user()) and go to "View page source" all user information is showing there and I think it will be so vulnerable.
@CodeInspire6 жыл бұрын
Hi. You have to write it inside @auth block. that way, Only login user can see those information. Also, they see only their own information not others. @auth window.user = @json(auth()->user()) @endauth
@junjun22able6 жыл бұрын
@@CodeInspire Hello, thank you so much for your reply sir. ^___^ Well yes, you were right, it's only the authenticated users can see there own data. But I was just thinking maybe there might be another way were we can a bit hide from users eye site all those js code data by just opening "view page source". Actually, In my case I put it in my app.js file by using axios so that it will be included in the webpack as well. And when they open "view page source" users just can see plane HTML. By the way looking forward for another cool tutorials from you co'z I'm also still new with this laravel and vue.js frameworks. Cheers!
@CodeInspire6 жыл бұрын
Hey bro. the user data is not going to be in app.js. I know everyone has access to app.js. Those data will become visible when user login. :) feel free to trust your code :)
@afal5 жыл бұрын
How to implement laravel gate and policy in front end
@CodeInspire5 жыл бұрын
Next video we do that. :)
@lifestyletrends51516 жыл бұрын
Hello sir your method is not working i am using laravel 5.7 and trying to install adminlte but it is not working
@CodeInspire6 жыл бұрын
HI. I am also using Laravel 5.7. Please tell me what's not working ??
@lifestyletrends51516 жыл бұрын
when i try to install theme in laravel 5.7 css is not working
@CodeInspire6 жыл бұрын
Do you have npm ??
@CodeInspire6 жыл бұрын
I didn't get what do you mean by theme ?
@lifestyletrends51516 жыл бұрын
yes sir i have
@kenkamonde45816 жыл бұрын
Nice job with the code I downloaded you code from GitHub, I have been struggling to get to the developers view. Please help me out.
@CodeInspire6 жыл бұрын
Please watch the last video in this playlist for that
@jeancastellanosvillalva23006 жыл бұрын
Good video, excuse the inconvenience any help to be able to do roles and permissions? inglésespañolfrancésitalianoportugués──────────Ver todos los idiomas TRADUCIR
@CodeInspire6 жыл бұрын
Hi, we are using different approach for roles and permission. We use Laravel ACL :)