We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi All,
I am using Laravel 5.1 and getting the following issue with this package.
"Interface 'Illuminate\\Database\\Eloquent\\Scope' not found", // error details "file": "/home/vagrant/projects/laravel/MyApp/vendor/hootlex/laravel-moderation/src/ModerationScope.php", "class": "Symfony\\Component\\Debug\\Exception\\FatalErrorException",
In my Model I am including it as
use Hootlex\Moderation\Moderatable; class Collection extends Model { use Moderatable; }
Please let me know whats wrong with this?
Kind regards, Javed Gardezi
The text was updated successfully, but these errors were encountered:
Hi,
I have found the problem... its lvl 5.1 compatibility issue.
Laravel 5.1 does not have Illuminate\Database\Eloquent\Scope Interface.
Illuminate\Database\Eloquent\Scope
In ModerationScope.php I have changed it to use Illuminate\Database\Eloquent\ScopeInterface and it started working.
ModerationScope.php
Illuminate\Database\Eloquent\ScopeInterface
Is there a way to add compatibility for Laravel 5.1.* in the offical repository.
Sorry, something went wrong.
Hi Jgardezi, Maybe you can use a class alias in your application (haven't tested it) :
if (!class_exists('\Illuminate\Database\Eloquent\Scope')) { class_alias('\Illuminate\Database\Eloquent\ScopeInterface', '\Illuminate\Database\Eloquent\Scope'); }
No branches or pull requests
Hi All,
I am using Laravel 5.1 and getting the following issue with this package.
In my Model I am including it as
Please let me know whats wrong with this?
Kind regards,
Javed Gardezi
The text was updated successfully, but these errors were encountered: