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



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2UI5juf
via IFTTT

تعليقات

المشاركات الشائعة من هذه المدونة

How to Create Treeview with Bootstrap and jQuery

jQuery Datatables with PHP, MySQL and AJAX Example

How to Add Images to Dropdown List using jQuery