入门
启动
php -S localhost:8000 -t public路由
指定路由到控制器方法处理
$router->get('/hello', 'HelloController@index');输出json
return response()->json(['name' => 'Abigail', 'state' => 'CA']);获取请求参数
app('request')->getRequestUri();make
你可以在服务容器外使用 make 方法来获得一个实例化的类
外墙和辅助功能之间绝对没有实际区别
return View::make('profile');
return view('profile');Last updated