I have this route:
Route::get('/MyModel/{id}', 'MyModel@show');
show()
id
/MyModel/1
/MyCustomURL
Route::get('/MyCustomURL', ['uses' => 'MyModel@show', 'id' => 1]);
show()
In same controller (in your case MyModel
?) you should create one new method:
public function showAliased()
{
return $this->show(1);
}
and now you can define your aliased route like so:
Route::get('/MyCustomURL', 'MyModel@showAliased');