Support the ongoing development of Laravel.io →
posted 10 years ago
Eloquent
Last updated 2 years ago.
0

Difficult with no code to go on, but check that your namespaces are formatted correctly.

Mei

Last updated 2 years ago.
0

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?

Last updated 2 years ago.
0

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.

Last updated 2 years ago.
0

jayhealey said:

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.

Thanks, i will try this out. And would write if i will face any problems.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.