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

تعليقات

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

5 Free Black and White Social Media Icons Sets with CSS and HTML

How to Create Treeview with Bootstrap and jQuery

How to Change Apache and MySQL Port Number in XAMPP Localhost