I am using route prefixing and I am coming up with an issue and not sure how to fix it.
First actual question is can I keep my links the same as they were before I added the prefixing?
Previously I had links for example and my routes were like this.
<a href="{{ route('users.edit', $user->id) }}">Edit</a>
Route::resource('users', 'UsersController');
However now I have added in a prefix to a group of routes so that links will show up as mysite.com/backstage/users.
Route::group(array('prefix' => 'backstage'), function()
{
Route::resource('users', 'UsersController');
});
So now with ALL my views do I have to go through each one and edit all the links so that they look like this or can I do something different so I can handle this situation differently.
<a href="{{ route('backstage.users.edit', $user->id) }}">Edit</a>
I'm also concerned about my breadcrumbs for my application.
<?php
Breadcrumbs::register('users.index', function($breadcrumbs) {
$breadcrumbs->parent('home');
$breadcrumbs->push('Users', route('backstage.users.index'));
});
Do I have to include the backstage or can I keep it without?