Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi-user functionality #34

Closed
dsultanr opened this issue Nov 10, 2020 · 1 comment
Closed

multi-user functionality #34

dsultanr opened this issue Nov 10, 2020 · 1 comment

Comments

@dsultanr
Copy link

Hi Hans!

Need your advice

My goal is to add your builder functionality independently to all of my users on my current laravel project

My thoughts was to add an extra column user_id into pages table

Which class will be easier to extend/replace to implement multi-user functionality?

@HansSchouten
Copy link
Owner

I don't think you need to replace that much. It is no problem to add a custom user_id column to the pages table.
Next you should use a Laravel controller method that calls the pagebuilder to edit a given page. This controller method should check whether the current user has permissions to edit that page.
To do this see this thread (and other issues in that repo): HansSchouten/Laravel-Pagebuilder#8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants