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.
相关问题
- Laravel Option Select - Default Issue
- Laravel 5.1 MethodNotAllowedHttpException on store
- Laravel - Implicit route model binding with soft d
- laravel : php artisan suddenly stop working
- How to execute MYSQL query in laravel?
相关文章
- laravel create model from custom stub when using p
- send redirect and setting cookie, using laravel 5
- How to send parameters to queues?
- Bcrypt vs Hash in laravel
- Laravel: What's the advantage of using the ass
- How to make public folder as root in Laravel?
- Input file in laravel 5.2?
- What is the difference between Session::set and Se
At the moment Lumen only runs in the domain root.
(I've submitted a PR that fixes this but it has yet to be merged)
You have to create a Virtual Host on your local webserver and point the document root of that to the public directory. After that you can access your app with something like:
http://lumen.dev
.A simple alternative to setting this up manually is Laravel Homestead. It is an official Vagrant box made for Laravel, that allows you to easily get your development environment up and running.
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 pathyourlumenproject/public/index.php
if you want to serve your app in local development you can do this :
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.*)
Open your terminal in the root folder run the following command
php artisan serve
.Lumen development server started on http://localhost:8000/