Laravel 5.2 NotFoundHttpException in RouteCollection.php line 161 Error
<p>I am following tuts+ video series for developing an ecommerce web app. I am almost done with it but I got one problem in the store section. I am displaying list of all products on <code>/store</code> route to the end users and I did that BUT now what I want to establish is single view page for each product.In simple words when I am on Store Page with all the products displayed , I want each product linked with his own singlepage view i.e price, picture , and other data about that specific post. I followed the video but when I try to access single page of a product it throws the following error.</p>

<p><strong>Error:</strong></p>

<pre><code>NotFoundHttpException in RouteCollection.php line 161:
in RouteCollection.php line 161
at RouteCollection-&gt;match(object(Request)) in Router.php line 823
at Router-&gt;findRoute(object(Request)) in Router.php line 691
at Router-&gt;dispatchToRoute(object(Request)) in Router.php line 675
at Router-&gt;dispatch(object(Request)) in Kernel.php line 246
at Kernel-&gt;Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
at Pipeline-&gt;Illuminate\Routing\{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
at CheckForMaintenanceMode-&gt;handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline-&gt;Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline-&gt;then(object(Closure)) in Kernel.php line 132
at Kernel-&gt;sendRequestThroughRouter(object(Request)) in Kernel.php line 99
at Kernel-&gt;handle(object(Request)) in index.php line 54
at require_once('D:\xampp\htdocs\ecom\public\index.php') in index.php line 21
</code></pre>

<p><strong>Store index file on which all products or displayed</strong>:</p>

<pre><code>    @foreach($products as $product)
                        &lt;div class="col-md-4 col-lg-4 col-sm-12"&gt;
                                &lt;li&gt;{!! $product-&gt;title  !!} - ({!! $product-&gt;price !!})&lt;/li&gt;
                                &lt;p&gt; {!! $product-&gt;description !!}&lt;/p&gt;
                                &lt;a href="store/view/{!! $product-&gt;id !!}"&gt;
                                    {!! Html::image($product-&gt;image ,$product-&gt;title) !!}&lt;/p&gt;
                                &lt;/a&gt;        
                              {!! Form::close() !!}
                         &lt;/div&gt;
   @endforeach
</code></pre>

<p><strong>View.blade.php  or single page for product:</strong></p>

<pre><code>{!! $product-&gt;title !!} &lt;br&gt;
{!! $product-&gt;description !!} &lt;br&gt;
{!! $product-&gt;image !!}
</code></pre>

<p><strong>StoreController Code :</strong></p>

<pre><code>&lt;?php

namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Category;
use App\product;
use View;
use Illuminate\Support\Facades\Input;
use Illuminate\Support\Facades\Redirect;

class StoreController extends Controller
{

    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        return View::make('store.index')-&gt;with('products', product::take(4)-&gt;orderBy('created_at','DESC')-&gt;get());
    }

    /**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function create()
    {
        return View::make('InsertCategory');
    }

    /**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function store(Request $request)
    {
            $category = new Category;
            $category-&gt;name = Input::get('name');
            $category-&gt;save();      
            return Redirect::to('admin/categories')-&gt;with('message', 'Category Created');

    }

    /**
     * Display the specified resource.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function show($id)
    {
        return View::make('store.view')-&gt;with('product', product::find($id));
    }

    /**
     * Show the form for editing the specified resource.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function edit($id)
    {
        //
    }

    /**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function update(Request $request, $id)
    {
        //
    }

    /**
     * Remove the specified resource from storage.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function destroy($id)
    {
        $category = Category::find(Input::get('id'));
        var_dump($input);
        if($category){
            $category-&gt;delete();
            return Redirect::to('admin/categories');
        }
    }
}
</code></pre>

<p>Routes.php :</p>

<pre><code>Route::get('/', 'StoreController@index');
Route::get('/admin', function () {
    return view('welcome');
});
Route::resource('store', 'StoreController');
Route::resource('admin/categories', 'CategoriesController');
Route::resource('admin/products', 'ProductsController');
</code></pre>

<p>PS : If you people need any thing more just mention in comment I will add that.</p>