Laravel 5, have full url as a route parameter
<p>I need to pass a full url as a route parameter on my laravel 5 application, the thing is as follows. I'm creating a thumbnail service that having the url of the original photo resizes it and streams it back to the browser.
For example, I need the img source to have an src like this:</p>

<pre><code>&lt;img src="http://host.com/generate-thumb/300x300/http://host.com/images/media1.png"/&gt;
</code></pre>

<p>So in the controller I can get the original image url like this:</p>

<pre><code>public function thumbAction(Request $request, $size, $original_url){

   dd($size, $original_url);

}
</code></pre>

<p>And my route definition as follows:</p>

<pre><code>Route::get('/generate-thumb/{size}/{original_url}', array(
   'as' =&gt; 'thumb_hook',
   'uses' =&gt; 'ThumbController@thumbAction'
));
</code></pre>

<p>I have done it that way but the server responds with a 404 error.</p>

<p>I have also specified an url pattern in the <code>where</code> method of the route definition.</p>

<p>Does anybody knows how to do that?</p>