Hi All,
not sure what I'm doing wrong here, still new to laravel and already built a number of sample apps but this time I installed laravel 5, all goes well but I get the error message when I try to launch my app "php artisan serve" see below .
I'd be grateful for any tips from more experienced users.
exception 'InvalidArgumentException' with message 'Command "serve" is not defined.' in /Users/admin/one/vendor/symfony/console/Symfony/Component/Console/Application.php:549 Stack trace: #0 /Users/admin/one/vendor/symfony/console/Symfony/Component/Console/Application.php(192): Symfony\Component\Console\Application->find('serve') #1 /Users/admin/one/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #2 /Users/admin/one/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(90): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #3 /Users/admin/one/artisan(34): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #4 {main}
here's also link to the screenshot with the error
As stated in #laravel the serve command was removed:
https://github.com/laravel/laravel/commit/80fb944e45801cec81b459f73892dbfc80c39de6
Thanks Matt - I understand. I will be using this going forward.
php -S localhost:8000 -t public/
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community