Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有一种简单的方法可以覆盖 Laravel 5.3 Passport 模型,以便他们使用Vinelab\NeoEloquent\Eloquent\Model而不是Illuminate\Database\Eloquent\Model
Vinelab\NeoEloquent\Eloquent\Model
Illuminate\Database\Eloquent\Model
您可以尝试将其绑定到您的服务提供者的register方法中:
register
public function register() { $this->app->bind(\Illuminate\Database\Eloquent\Model::class, \Vinelab\NeoEloquent\Eloquent\Model::class) }