I have route defined in the Route.php
file like below
Route::get('/SubCategories-List/{categoryID}', 'SkillsCategory_Controller@SubCategories');
Below is the code done in Blade for showing list of records.
@foreach($Categories as $Category)
<tr class="odd pointer">
<td class=" last">
<a href="{{Route('SubCategories-List', [$Category->CategoryID])}}">
Sub Categories
</a>
</td>
</tr>
@endforeach
I am getting the following error when action method calls the blade
Route [SubCategories-List] not defined.
Am I missing something ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…