Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,148,043 members, 7,799,529 topics. Date: Wednesday, 17 April 2024 at 12:05 AM

I Need help With Vuejs/laravel - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / I Need help With Vuejs/laravel (759 Views)

Make Payment With Vuejs, Express And Stripe / Frontend Engineer With Vuejs Experience Wanted. / Vuejs Confirm Dialog Plugin (2) (3) (4)

(1) (Reply) (Go Down)

I Need help With Vuejs/laravel by Karlebolu(m): 7:52pm On Apr 13, 2020
There is this method called in a vue component that was not imported from anywhere in a lesson I am following on github.

https://github.com/connor11528/laravel-forum/blob/master/resources/assets/js/components/Reply.vue

on line 58, a canUpdate computed property was defined, it reference an authorize method and I don't know where it came from.

canUpdate(){
return this.authorize(user => this.data.user_id == user.id);
},

even the computed property on line 53 something ambiguous to me

signedIn(){
return window.App.signedIn;
}
.


Please help clarify.

1 Like

Re: I Need help With Vuejs/laravel by Karlebolu(m): 10:37am On Apr 14, 2020
I was able to get the answer through Google search.

There is this Javascript library that does exactly what laravel authorization does, it was what the guy used albeit in a different way.

https://pineco.de/implementing-laravels-authorization-front-end/

1 Like 1 Share

Re: I Need help With Vuejs/laravel by Playforkeeps(m): 8:27pm On Apr 14, 2020
Karlebolu:
I was able to get the answer through Google search.

There is this Javascript library that does exactly what laravel authorization does, it was what the guy used albeit in a different way.

https://pineco.de/implementing-laravels-authorization-front-end/

Great google ninja skills OP, i myself tried searching for it because ostensibly it wasn't a Vue method.

1 Like

Re: I Need help With Vuejs/laravel by Karlebolu(m): 9:45pm On Apr 14, 2020
Playforkeeps:

Great google ninja skills OP, i myself tried searching for it because ostensibly it wasn't a Vue method.

cool cool

1 Like

(1) (Reply)

100% Free Spy App For Android / Script Help Needed / BLUESCREEN

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 7
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.