I don't want to show the page if the ID does not exist.
How can I check this in my web.php routes in Laravel?
I currently have the following route:
Route::get('/public/{project_id}', 'ProjectController@public');
How can I do a conditional check to see if project_id exists?
I saw there was an option for Route::bind in the routing docs -- is that a solution? Thanks
Update Note: Slightly different than the Laravel 4 approach as binding seems to have been baked in to the route class.