Laravel-Backpack / PermissionManager

Admin interface for managing users, roles, permissions, using Backpack CRUD
http://backpackforlaravel.com
Other
516 stars 166 forks source link

namespace should be App\Models #275

Closed shinokada closed 3 years ago

shinokada commented 3 years ago

An example in README file no. 5.

<?php namespace App;

use Backpack\CRUD\app\Models\Traits\CrudTrait; // <------------------------------- this one
use Spatie\Permission\Traits\HasRoles;// <---------------------- and this one
use Illuminate\Foundation\Auth\User as Authenticatable; 

class User extends Authenticatable
{
    use CrudTrait; // <----- this
    use HasRoles; // <------ and this

    /**
     * Your User Model content
     */

Shouldn't it be:

<?php
namespace App\Models;
...
promatik commented 3 years ago

Hi, yes it should, it was the old path Laravel used to place the User Model.

Since nowadays it's changed and PermissionManager supports and promotes that change, I opened #276 to fix that.

Thank you @shinokada 👌