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

Errors: Errors even on installation #41

Closed
rahulcoresolutions opened this issue Dec 13, 2019 · 1 comment
Closed

Errors: Errors even on installation #41

rahulcoresolutions opened this issue Dec 13, 2019 · 1 comment

Comments

@rahulcoresolutions
Copy link

Errors on users table seeder:

Migrated: 2018_10_26_034432_alter_users_table (0.25 seconds)
Seeding: UsersTableSeeder

ErrorException : Trying to get property 'id' of non-object

at /Applications/MAMP/htdocs/survey-backend/vendor/bpocallaghan/titan/app/Models/Traits/UserRoles.php:61
57| public function attachRole($roleSlug)
58| {
59| // add dealer role to user
60| $role = Role::where('keyword', $roleSlug)->first();

61| $this->roles()->attach([$role->id]);
62|
63| return $this->roles;
64| }

@bpocallaghan
Copy link
Owner

Hi @rahulcoresolutions
Sorry about that, I am busy doing some big refactoring / writing unit tests, etc.
Can you try to run php artisan titan:db:seed before you do db:seed (So that it seed the roles, navigation from the titan package)

Reference Titan Package

Please let me know if its not working.
Thanks

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