coreui / coreui-free-laravel-admin-template

CoreUI Free Laravel Bootstrap Admin Template
https://coreui.io/laravel/
MIT License
621 stars 358 forks source link

Admin role can't edit the menu? #42

Closed airliajsmith closed 4 years ago

airliajsmith commented 4 years ago

Not sure if this is a bug or something on my end. Is the Admin role supposed to be able to edit the menu? I get a 403, User does not have the right roles.

Here is the seeder from your code:

    $user = User::create([
        'name' => 'AJ',
        'email' => 'test@test.com',
        'email_verified_at' => now(),
        'password' => 'taken out for security', // password
        'remember_token' => Str::random(10),
        'menuroles' => 'user,admin'
    ]);
    $user->assignRole('admin');
airliajsmith commented 4 years ago

Sorry, this was my error. I will try to fix longer before posting.