Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lumen not working out of the box

Just installed Lumen framework. hit the link http://localhost/lumen/public/ in my browser and got this following error, anyone got any idea about it? Traced it back to the app.php file in bootstrap folder.

lumen application.php error

like image 691
zegulas Avatar asked Apr 18 '15 06:04

zegulas


3 Answers

if You want to access lumen project without "php artisan serve"

$app->run(); replace with $request = Illuminate\Http\Request::capture(); $app->run($request); from this path yourlumenproject/public/index.php

like image 150
Shrikant Bhardwaj Avatar answered Oct 29 '22 01:10

Shrikant Bhardwaj


Open your terminal in the root folder run the following command php artisan serve.

Lumen development server started on http://localhost:8000/

like image 39
Vivek Texeira Avatar answered Oct 29 '22 00:10

Vivek Texeira


if you want to serve your app in local development you can do this :

php -S localhost:8000 -t public/

and it will serve in localhost in port 8000. hope this help.

Note : I'm using Laravel Framework version Lumen (5.2.4) (Laravel Components 5.2.*)

like image 31
Gujarat Santana Avatar answered Oct 29 '22 01:10

Gujarat Santana