samedi 18 février 2017

Class not found when called in custom class in laravel

I have a file named

Helper.php and I have put it in composer.

"autoload": {
        "files": [
            "app/Http/Helper.php",
            "app/Notification.php"
        ]
    },

You can see that I have also put a model that is Notification model. but when I call this Notification in Helper.php it says class Notification not found..

function notify()
{
    $notify = new App\Notifcation;
    $notify = new Notifcation; //Also tried this

}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire