jeudi 22 septembre 2016

Laravel Trait not found on remote server, was ok locally

I have the following model

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use \Kalnoy\Nestedset\Nodetrait;

class Category extends Model
{
    use NodeTrait;
}

It is working correctly on my homestead local environment, after trying to publish it on a vps (and run the composer install and update) i got the error of this trait not being found

FatalErrorException in Category.php line 10: Trait 'Kalnoy\Nestedset\Nodetrait' not found

why can it be?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire