You defined your route:
Route::get('projects/projectDetails/{$id}', 'ProjectController@viewProject');
which is URI: project/projectDetails/{$id}
which would be:
URL::to("project/projectDetails/{$pro->id}")
lagbox said:
You defined your route:
Route::get('projects/projectDetails/{$id}', 'ProjectController@viewProject');
which is URI:
project/projectDetails/{$id}
which would be:URL::to("project/projectDetails/{$pro->id}")
@lagbox thx for your reply
but I didn't understand how should I define my route Sorry but you didn't clear you answer
I try to define my Route this way the same problem is there
Route::get('URI:project/projectDetails/{$id}', 'ProjectController@viewProject');
URL::to("project/projectDetails/{$pro->id}")
That is how you generate a url to http://yoursite.com/project/projectDetails/XXX
.
Route::get('projects/projectDetails/{id}', 'ProjectController@viewProject');
Would be how you would define that route for that URI.
Yes you are right and my URL is something like
http://localhost/elarabiaLaravel/public/projects/projectDetails/8
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community