9 months ago

User model namespace not importing

Posted 9 months ago by pn

I use sublime text 3, I use php companion to import namespace . Key bindings works fine for other models, but when I try to import the default User model in another model it does not import it.

NOTE : -> I created new user model inside Model folder and copied logic form default to new model and deleted the default one. ->Even if I implement model to user model it does not import, (Implemented model like blow) :

use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable,Model

What am I doing wrong here ? If I manually Import it , is it appropriate that way , will it cause any problems in the future ?

Please sign in or create an account to participate in this conversation.