Difficult with no code to go on, but check that your namespaces are formatted correctly.
Mei
In my Post.php (model) ihave inserted to the top:
use Cviebrock\EloquentSluggable\SluggableInterface; use Cviebrock\EloquentSluggable\SluggableTrait;
But in PhpStorm 7, when i hover over EloquentSluggable it shows it in a red color and throws an error: undefined namespace.
Where do i check namespace formatting?
First thing is to check if the dependancy installed properly.
Look in your vendor
directory for Cviebrok
folder, and see if the EloquentSluggable
folders in there and see if there's code in that folder.
If not, might want to re-install it.
If it is, have you run composer dump
at the root of your project? That will update the autoloaders to include it.
jayhealey said:
First thing is to check if the dependancy installed properly.
Look in your
vendor
directory forCviebrok
folder, and see if theEloquentSluggable
folders in there and see if there's code in that folder.If not, might want to re-install it.
If it is, have you run
composer dump
at the root of your project? That will update the autoloaders to include it.
Thanks, i will try this out. And would write if i will face any problems.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community