mercredi 3 février 2016

Undefined default namespaces in Laravel 5.1

I'm developing an app in Laravel 5.1. And for some reason there's loads of default namespace paths that are red (using PHPStorm 10). They are marked as "undefined namespace"

For example, when I make a model with artisan it ends up with this:

use Illuminate\Database\Eloquent\Model;

class Form extends Model
{
    //
}

And Eloquent is red. So I can't use the model.

Same goes in app/config/app.php

Where Illuminate\Support\Facades\

where Facades is red.

These are tons of namespace errors like this (under the Illuminate root ). Any idea with it might be?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire