10 November, 2020
blade route laravel
Programing Coderfunda November 10, 2020 No comments
blade route laravel
Programing Coderfunda November 10, 2020 No comments
Routes, post get
Programing Coderfunda November 10, 2020 Laravel-Question No comments
“Routes, post get ” Code Answer
Routes, post get
0
1
Route::match(['get', 'post'], '/', function () {
2
//
3
});
4
5
Route::any('/', function () {
6
//
7
});
Source: laravel.com
Routes, post get
0
1
use App\Http\Controllers\UserController;
2
3
Route::get('/user', [UserController::class, 'index']);
Source: laravel.com
Routes, post get
0
1
Route path: /users/:userId/books/:bookId
2
Request URL: http://localhost:3000/users/34/books/8989
3
req.params: { "userId": "34", "bookId": "8989" }
4
Source: expressjs.com
Routes, post get
0
1
app.get('/users/:userId/books/:bookId', function (req, res) {
2
res.send(req.params)
3
})
4
Source: expressjs.com