Yesterday, I upgraded my biggest application to Laravel 5.4, which is still in Development. In my Frontend, I’m working a lot with Auth::user() and eloquent in my Models. Even if I have some Repositories.
For example I use Auth::user()->photo('size_256x256')->url but I'm getting an error.
Under 5.3 it has still worked. The part of the Model looks like return $this->hasOne(UsersPhoto::class, 'user_id', 'id')->where('size', $size)->first();
Do I have to change a lot now or do I haven’t read something at the change log? Maybe someone has a tipp what's the better way is now.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire