I am working on a little project and I need to display the author\'s image for each author in my database. peep the code below:
--THE QUERY--
Try this way: For Laravel:
image); if(isset($image['host'])){ $image= $user->image; } else if($image==null){ $image= Request::root().'/uploads'.'/subsystems_icons/'.'democp.jpg'; } else { $image= Request::root().'/uploads/'.$user->image; } ?>