vendredi 23 juillet 2021

laravel: how to explain the action "name" at web.php under routes folder

I can not understand how below code works in /var/www/html/routes/web.php

Route::get('/import', 'ImportController@ImportStats')->name('import.stats')->middleware('can:import.stats');

'/import', 'ImportController@ImportStats') this part is easy to understand,

but I do not know what name('import.stats') and ('can:import.stats') are....

thanks



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire