How does Laravel 4 work? What precisely happens when a user loads index.php? Per Your Request walks through Laravel's entire request cycle, and shows you what happens when.
instance of Illuminate\Foundation \Application 3. This creates the request object and registers 3 ServiceProviders 4. Detect and set the environment 5. Bind our application filepaths to the Application object 6. Require the Foundation start.php file via Application::getBootstrapFile() Phase 2 Commence
2.Create a new instance of Illuminate\Foundation \Application 3. This creates the request object and registers 3 ServiceProviders 4. Detect and set the environment 5. Bind our application filepaths to the Application object 6. Require the Foundation start.php file via Application::getBootstrapFile()
Setup the Facade 3. Load the config files 4. Set the default timezone 5. Register the alias loader 6. Allow for PUT and DELETE requests with forms 7. Create the provider repository 8. Boot ServiceProviders with Application::boot() 9. Require the /app/start/global.php file 10. Require the /app/start/$env.php file 11. Require the /app/routes.php file Phase 3 Commence Autoloadin‘ Application Bootstrapped Run
Setup the Facade 3. Load the config files 4. Set the default timezone 5. Register the alias loader 6. Allow for PUT and DELETE requests with forms 7. Create the provider repository 8. Boot ServiceProviders with Application::boot() 9. Require the /app/start/global.php file 10. Require the /app/start/$env.php file 11. Require the /app/routes.php file Phase 3 Complete Autoloadin‘ Application Bootstrapped Run
it exists 3. Find the route 4. Run the route code, calling filters where applicable (ex: before and after) 5. Generate a Response object 6. Send the response 7. Call the after filter Autoloadin‘ Application Bootstrapped Run Phase 4 Commence
the app 2. Set the session store if it exists 3. Find the route 4. Run the route code, calling filters where applicable (ex: before and after) 5. Generate a Response object 6. Send the response 7. Call the after filter