dimanche 28 août 2016

error while trying to run artisan command with Artisan Facade

here's the code

Route::get('run-cmd', function() {
    Artisan::call('make:controller HelloController');
});

and I wonder I'm getting this error...

InvalidArgumentException in Application.php line 549:
Command "make:controller HelloController" is not defined.
Did you mean one of these?
make:migration
make:controller
make:middleware
make:request
make:provider
make:console
make:event
make:model
make:command

what's wrong?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2c73CPe
via IFTTT

Aucun commentaire:

Enregistrer un commentaire