In route in laravel we can create alias for a url. Laravel provide us the facility for giving alias for an url. We can use this url alias any where in our view
routes.php
Route::get("admin/department/{id}", ['as' => 'department.edit', 'uses' => 'Admin\CompanyDepartmentsController@edit']);
View code :-
<a href="{{route('employee.edit', $value->userid)}}" style="padding-left:10px;">{!!Html::image('images/edit.png')!!}
</a>
0 Comment(s)