Skip to content
New issue

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

Interface 'Ghanem\Rating\Contracts\Rating' not found #3

Closed
bossmeow opened this issue Dec 29, 2015 · 2 comments
Closed

Interface 'Ghanem\Rating\Contracts\Rating' not found #3

bossmeow opened this issue Dec 29, 2015 · 2 comments

Comments

@bossmeow
Copy link

Just published the package and got the error as below

' Interface 'Ghanem\Rating\Contracts\Rating' not found '

My model is as below.

namespace App;

use Illuminate\Database\Eloquent\Model;

use Cviebrock\EloquentSluggable\SluggableInterface;
use Cviebrock\EloquentSluggable\SluggableTrait;
use Ghanem\Rating\Contracts\Rating;
use Ghanem\Rating\Traits\Ratingable as RatingTrait;

class Business extends Model implements SluggableInterface, Rating
{
    //
    use RatingTrait;
    use SluggableTrait;

}

I have tried to remove the SluggableInterface but still the same error. I am not sure if i missed out anything but any pointers will be appreciated!

Thanks!

@AbdullahGhanem
Copy link
Owner

hi bossmeow
try

namespace App;

use Illuminate\Database\Eloquent\Model;

use Cviebrock\EloquentSluggable\SluggableInterface;
use Cviebrock\EloquentSluggable\SluggableTrait;
use Ghanem\Rating\Contracts\Ratingable;
use Ghanem\Rating\Traits\Ratingable as RatingTrait;

class Business extends Model implements SluggableInterface, Rating
{
    //
    use RatingTrait;
    use SluggableTrait;

}

@coycash
Copy link

coycash commented Feb 8, 2016

class Business extends Model implements SluggableInterface, Rating

should be

class Business extends Model implements SluggableInterface, Ratingable

at least that worked for me.

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

No branches or pull requests

3 participants