Laravel Basic
Laravel Form
Laravel Database
Laravel Advance
Browser Request (http://my-app.test) ↓ public/index.php ↓ bootstrap/app.php ↓ Service Providers (config/*.php) ↓ Routes(web.php/api.php) → Middleware → Controller ↓ Response ↓ Browser
public/index.php
.bootstrap/app.php
and load routes(web.php,api.php).config/*.php
routes/web.php
(for web requests)routes/api.php
(for API requests)string
, view()
, json()
) is wrapped into a Illuminate\Http\Response
object.