'Route [marks-time] not defined. (View: D:\schoolerp\resources\views\backEnd\examination\marks_time.blade.php)

i have defined route on admin.php

Route::get('marks-time', \['as' =\> 'marks-time', 'uses' =\> 'SmMarksTimeController@marksTime'\])-\>name('marks-time')-\>middleware('userRolePermission:2050');
Route::post('marks-time', \['as' =\> 'marks-time', 'uses' =\> 'SmMarksTimeController@markTimeSave'\])-\>name('marks-time')-\>middleware('userRolePermission:2051');

and defined this route on blade file but it still through error

@if(isset($marks_time))
{{ Form::open(\['class' =\> 'form-horizontal', 'files' =\> true, 'route'=\>array('MarksTimeUpdate',$marks_time-\>id), 'method' =\> 'PUT'\]) }}
@else
@if(userPermission(2050))

{{ Form::open(\['class' =\> 'form-horizontal', 'files' =\> true, 'route' =\> 'marks-time', 'method' =\> 'POST'\]) }}
@endif
@endif

I tried to write name('marks-time') on admin.php to resolve it but it still not work how can i fixed it



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source