Skip to content
This repository has been archived by the owner on Jun 1, 2019. It is now read-only.

Laravel 5.2 #23

Closed
XavRsl opened this issue Dec 24, 2015 · 8 comments
Closed

Laravel 5.2 #23

XavRsl opened this issue Dec 24, 2015 · 8 comments

Comments

@XavRsl
Copy link

XavRsl commented Dec 24, 2015

Hi,
The path to Guard changed in Laravel 5.2 from Illuminate\Auth\Guard;to Illuminate\Contracts\Auth\Guard;. This will need to be updated in ActivitylogSupervisor.php

Thanks,

Xavier

@arcanedev-maroc
Copy link

Hi @XavRsl,

This change means that you're going to use an abstract class than a concrete one.

@XavRsl
Copy link
Author

XavRsl commented Dec 24, 2015

The change is to be made in the package if you don't want an error to be thrown. I just saw that after updating to 5.2.

@arcanedev-maroc
Copy link

It's a good change, because its decouple the code from the dependency and we can extend the Guard with a custom one.

@XavRsl
Copy link
Author

XavRsl commented Dec 24, 2015

Yep !

Le jeu. 24 déc. 2015 à 16:53, ARCANEDEV notifications@github.com a écrit :

It's a good change, because its decouple the code from the dependency and
we can extend the Guard with a custom one.


Reply to this email directly or view it on GitHub
#23 (comment).

@ozgurkaragoz
Copy link
Contributor

Hi,

Guard problem fixed for laravel 5.2

#24

@pbernim
Copy link

pbernim commented Dec 25, 2015

Hi,

I have this problem:

FatalErrorException in Model.php line 852:
Class name must be a valid object or a string

The problem is at the model, relationship:

return $this->belongsTo(Config::get('auth.model'), 'user_id');

Thanks!

@pbernim
Copy link

pbernim commented Dec 25, 2015

I found the solution:

in 'public function user()' change:

return $this->belongsTo(Config::get('auth.model'), 'user_id');

    return $this->belongsTo(Config::get('auth.providers.users.model'), 'user_id');

@freekmurze
Copy link
Member

Version 2.3.0 of the package is compatible with L5.2
Thanks for your help!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants