VentureCraft / revisionable

Easily create a revision history for any laravel model
http://twitter.com/duellsy
MIT License
2.56k stars 348 forks source link

Error: Trait 'Venturecraft\Revisionable\RevisionableTrait' not found #145

Open polapola opened 9 years ago

polapola commented 9 years ago

I have installed the package in my Laravel 4.

when i use based on the new, trait based implementation like this:

<?php use Illuminate\Auth\UserTrait; use Illuminate\Auth\UserInterface; use Illuminate\Auth\Reminders\RemindableTrait; use Illuminate\Auth\Reminders\RemindableInterface;

class Category extends \Eloquent implements UserInterface, RemindableInterface { use UserTrait, RemindableTrait; use Venturecraft\Revisionable\RevisionableTrait;

I get the following error: Trait 'Venturecraft\Revisionable\RevisionableTrait' not found

Please suggest me ... thank you.

kz commented 9 years ago

Your namespace is probably not in the base namespace. Use \Venturecraft\Revisionable\RevisionableTrait; instead. Note the prepended backslash.