Vinelab / NeoEloquent

The Neo4j OGM for Laravel
MIT License
634 stars 200 forks source link

Creation of new NeoEloquent #163

Closed reshma-r-p closed 7 years ago

reshma-r-p commented 8 years ago

I just wanna know about how to create a new model using NeoEloquent. I created one in my models folder. And as follows, <?php namespace App; namespace App\Vinelab\Cms; use Vinelab\NeoEloquent\Eloquent\SoftDeletes; use Vinelab\NeoEloquent\Eloquent\Model as NeoEloquent;

class Testposts extends NeoEloquent { protected $connection = 'neo4j'; protected $label = 'Testposts'; // or array('User', 'Fan') protected $fillable = ['name', 'content']; } But it shows the error, FatalThrowableError in TextController.php line 38: Class 'App\Models\Testposts' not found

heydavid713 commented 8 years ago

You namespace should be App\Models not App\Vinelab\Cms