Hi guys! I currently have a problem where I get stuck. I want to when you call example.com/xxx.jpg, the image file is displayed, unfortunately it does not work so well.
Route::get('/(:any)', function($image)
{
$get = Images::where('image', $image)->count();
if($image)
{
echo '<img src="http://i.shotly.net/'.$get->image.'" />"';
} else
{
}
});
What did I do wrong? :S
WbR meikelsmirnow
Maybe count first and verify there is a count then:
$get = Images::where("image", "=", $image)->get();
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community