Coggle requires JavaScript to display documents.
// resources/views/test.blade.php <h1>{{message}}</h1>
Route::get('/', function(){ return view('test', ['message' => 'hello laravel']); });
public function __construct(XXX\API $api){ }
php artisan make:provider MessageServiceProvider
php artisan make:middleware <middleware 名稱>
public function handle($request, Closure $next)
// 路由套用 Route::post('test', function(Request $request){ // })->middleware('xss:encode'); // 群組套用 Route::middleware('xss:encode')->group(function(){ Route::post('test', function(Request $request){ // }); });
protected function schedule(Schedule $schedule){ $schedule->call(function(){ // 排程要做的事情 })->daily(); }