Open mahmoud-birdsol opened 8 years ago
I would prefer the config variable
approach. What do you think about this solution?
Oh, and can you specifically "tag L5.2" in the headline? ;)
Actually, there is already a pull request pending for this issue: See here #157
Laravel 5.2 Has a different config/auth file for the model you just need to change
public function users() { return $this->belongsToMany(config('auth.model'))->withTimestamps(); }
to
public function users() { return $this->belongsToMany(config('auth.providers.users.model'))->withTimestamps(); }
or just add another configuration variable in your config file and use that