Laravel: Access images inside public folder
<p>Hi I'm totally freaked out of Laravel filesystem, I'm searching around the web for three days and I can't find away to show images in view from "storage/app/public" folder or storing images in another folder outside "storage/app/public".
I'm using Homestead on windows with Laravel 5.3. This is the "store controller" that uploads the images and saves the path in to the database.</p>

<pre><code>    class ClassName extends Controller
{
public function store(Request $request)
        {
    $today = Carbon::today();  //Today
            $year = $today-&gt;year;                                         // year int(2016)
            $month = $today-&gt;month;                                        // month int(11)
            $day = $today-&gt;day;                                          // day int(5)

            //make year/month/day directory if not available then upload images to these directories sent from the form
            $path = $request-&gt;file('ProductImage')-&gt;store(public_path().'/'.$year.'/'.$month.'/'.$day);
            if ($request-&gt;file('ProductImageOne')) {
                $pathone = $request-&gt;file('ProductImageOne')-&gt;store('public'.'/'.$year.'/'.$month.'/'.$day);
            }
            else{
                $pathone = NULL;
            }

            if ($request-&gt;file('ProductImageTwo')) {
                $pathtwo = $request-&gt;file('ProductImageTwo')-&gt;store('public'.'/'.$year.'/'.$month.'/'.$day);
            }
            else{
                $pathtwo = NULL;
            }


            //store data's sent by the form
            $product = new Product;
            $product-&gt;ProductImage = $path;
            $product-&gt;ProductImageOne = $pathone;
            $product-&gt;ProductImageTwo = $pathtwo;
            $product-&gt;save();

            Session::flash('flash_message', 'Your Image is uploaded.');
            return redirect('/products/create');
    }
}
</code></pre>

<p>So far I don't have any Issue, the image is uploaded to the:</p>

<blockquote>
  <p>\storage\app\public\2016\11\8\image-name.png</p>
</blockquote>

<p>But when I'm trying to show the image in the view file it won't show up.This is my controller method that sends the path to view:</p>

<pre><code>public function edit($id)
    {
        //Get product from $id to edit
        $product = Product::findOrFail($id);       

        //send the data above and load the edit product view (edit form)
        return view('pages.edit_product')-&gt;with('product', $product);
    }
</code></pre>

<p>And this is my view code where I want to show the image:</p>

<pre><code>&lt;img src="{{ asset($product-&gt;ProductImage) }}" width="45"&gt;
</code></pre>

<p>Returns this: </p>

<pre><code>&lt;img src="http://laravel.dev:8000/public/2016/11/6/0b7e4e3dbf6907fa1b858fa5cd0bf3ce.jpeg" width="45"&gt;
</code></pre>

<p><a href="http://laravel.dev:8000/public/2016/11/6/0b7e4e3dbf6907fa1b858fa5cd0bf3ce.jpeg" rel="nofollow noreferrer">http://laravel.dev:8000/public/2016/11/6/0b7e4e3dbf6907fa1b858fa5cd0bf3ce.jpeg</a></p>

<p>And when I want to directly go to this link to the image it says:</p>

<blockquote>
  <p>Sorry, the page you are looking for could not be found.</p>
  
  <p>1/1 NotFoundHttpException in RouteCollection.php line 161:</p>
</blockquote>

<p>And I even did the "symbolic link" through "php artisan storage:link" which I know a little about it. it makes a blank ".storage" file in the public folder.
That's my first project with Laravel and I really loved it until I came to this issue uploading image and showing it to viewer and now I'm disappointed. Please Help </p>