spatie-permissions-demo icon indicating copy to clipboard operation
spatie-permissions-demo copied to clipboard

For API?

Open shirshak55 opened this issue 7 years ago • 6 comments

I guess there is namespacing on this spatie permissions package. How should we work this in API. As laravel supports Resources in laravel 5.5 the demo should not be hard for api? For Api are we going to duplicate soo much roles and permissions in tables?? Can we make demo for that also as in modern days there will be mobile app version of almost every website right?

shirshak55 avatar Sep 30 '17 13:09 shirshak55

Adding a demo of the API Resource support in 5.5 is a good idea. Willing to collaborate to put one together. Wanna help?

I'd like to address your namespacing question, but I think it's better handled over in the package repo itself, as it relates to the multiple guards feature. Do you mind posting this as an Issue over in the https://github.com/spatie/laravel-permission/issues/ repo?

drbyte avatar Sep 30 '17 14:09 drbyte

Hi I am willing to collabrate . Yes I guess we need to discuss with freekmurze. I guess namespacing problem will be fixed on v3 of that package.

https://github.com/spatie/laravel-permission/issues/479

shirshak55 avatar Sep 30 '17 14:09 shirshak55

Great!

If you're okay with the demo leveraging what's already here in this demo, shall we just do it right here, using PRs?

I'll clone master into api as a working branch, and when we're satisfied it's complete we can merge into master.

drbyte avatar Sep 30 '17 14:09 drbyte

Sure . We will work in api and we will leverage whats already here as it will maintain consistency

shirshak55 avatar Sep 30 '17 14:09 shirshak55

Excellent.

drbyte avatar Sep 30 '17 15:09 drbyte

Is this role for api can be used now?

eternalBlast avatar Jul 18 '19 03:07 eternalBlast