In my Laravel application, I have created url: like "https://ift.tt/3wVw4dz" but here, I want to remove id from the last and concatenate id with my 2nd parameter that is, "property for rent" like : "https://ift.tt/3oENQOn".
In the Controller function get 3 parameters
public function single_properties(Request $request, $property_purpose, $slug, $id)
In the Blade file
In the Web.php File
Route::get('{property_purpose}/{slug}/{id}', 'PropertiesController@single_properties');
I have tried to reduce parameter from the function, blade and route, but didn't work for me. can anyone please help me out, I am poorly trapped in it,
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3oDvjC4
via IFTTT
Aucun commentaire:
Enregistrer un commentaire