Answer the question
In order to leave comments, you need to log in
Routing Laravel 5.3?
There was a question while compiling a Laravel route. For example, we use parameters to create a route:
Route::get('{name1}_prfx_{name2}/', function ($name1, $name2) {
//
});
Answer the question
In order to leave comments, you need to log in
What does it mean where they come from?
From the link on which the page was opened, and the link on the site page ...
Route::get('{name1}_prfx_{name2}/', '[email protected]')->name('test');
<?php namespace App\Http\Controllers;
use Illuminate\Http\Request;
class Test extends Controller {
public function index(Request $request, $name1, $name2) {
dd($name1, $name2);
}
}
user/name/login
name and login parameters get(post)
Route::get('user/{name}/{login}')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question