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

How to use webed in existing app? #48

Open
bdebb opened this issue Oct 24, 2017 · 4 comments
Open

How to use webed in existing app? #48

bdebb opened this issue Oct 24, 2017 · 4 comments

Comments

@bdebb
Copy link

bdebb commented Oct 24, 2017

Looks like a great CMS and exactly what i'm looking for!
However when trying to integrate this cms in my existing (fairly large) app, i'm running into a few problems.

When publishing (resource) assets, following errors occur:
Can't locate path: </Users/barry/Sites/webedtestproject/vendor/sgsoft-studio/shortcode/src/Providers/../../resources/root>
(many times)

I'm also encountering the problem that i already have a users-table.
Is it possible to have 2 user-tables (users for my 'main' app and we_users for the webed-cms) and how to implement this in Auth.php?
(when i change the web login model in config/auth.php to WebEd\Base\Users\Models\User::class, the webed cms-part is working, except for the missing texts/labels, but my main app isn't working anymore because it's searching users in the wrong table)

I also tried to derive my 'normal' User model from WebEd\Base\Users\Models\User, but that's giving the same problems.

Any help is appreciated!

@duysolo
Copy link
Owner

duysolo commented Oct 25, 2017

Dear,

  1. The error messages shown when you run vendor:publish because of I defined the publish path, but nothing to publish. Everything still ok.

  2. You can change the auth config by run this command:

php artisan core:vendor:publish webed-users

Then open the file config/webed-auth.php and modify the guard. The default guard is web.

@bdebb
Copy link
Author

bdebb commented Oct 31, 2017

Thanks!

@bdebb
Copy link
Author

bdebb commented Nov 1, 2017

Sorry for my enthousiasm, but php artisan core:vendor:publish webed-users doesn't publish any webed-auth.php file in the config dir.
Do you have any idea wy not?

@duysolo
Copy link
Owner

duysolo commented Jan 30, 2018

You may need to use php artisan core:vendor:publish webed-users --tag=config --force

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