xxxxxxxxxx
Route::get('/novanoticia', 'HomeController@getNovaNoticia')->name('route_name');
xxxxxxxxxx
WEB.PHP
Route::get('/', function () { return view('home'); })->name('home');
BLADE.PHP
<a href="{{ url("/") }}">home</a>
<a href="{{ route('home') }}">home</a>
// Like the post if you found it usefull and help other devs to find the good answer
xxxxxxxxxx
Route::get('/menu/{category}/{product}/{item}', ['as' => 'named.route' , 'uses' => 'MenuController@listItem']);
// to get the actual linke
route('named.route', ['category' => $category->id, 'product' => $product->id, 'item' => $item->id]);
xxxxxxxxxx
Route::get('/', [ControllerName::class, 'index'])->name('homeRoute');
xxxxxxxxxx
Route::get('/novanoticia', 'HomeController@getNovaNoticia')->name('route_name');
Route::get('/novanoticia', ['as' => 'route_name', 'uses' => 'HomeController@getNovaNoticia']);
xxxxxxxxxx
Route::namespace('Admin')->group(function () {
// Controllers Within The "App\Http\Controllers\Admin" Namespace
});