I am trying to pass a route variable to the controller and it breaks down the whole page because if I go to network tab, it's being fetched as a document.
Here is the function in the controller:
public function watch($id)
{
//Some logic goes here
}
Here is my Route:
Route::get('/watch/{id}', "HomeController@watch");
and the page looks something like:
localhost:8040/mysite/public/watch/1J76wN0TPI4
Here is a screenshot of the page after it loads: