I had uploaded an image by using the Intervention PHP image handling and manipulation library in laravel4. By using this library I uploaded the image properly but the problem I facing is that when I tryed to display those image from database, it is showing that there is an invalid url. However, the url is valid and I think this is an issue regarding permissions.
I am posting the below permission that is given by default to an uploading folder and also the user is permitted to access it is www-data.
My Code
@section('main')
@extends('layouts/user')
<h1>All Users</h1>
<p>{{ link_to_route('users.create', 'Add new user') }}</p>
@if ($users->count())
<table class="table table-striped">
<thead>
<tr>
<th>FirstName</th>
<th>LastName</th>
<th>Email</th>
<th>Address</th>
<th>Image</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@foreach ($users as $user)
<tr>
<td>{{ $user->firstName }}</td>
<td>{{ $user->lastName }}</td>
<td>{{ $user->emailId }}</td>
<td>{{ $user->address }}</td>
<td>{{ HTML::image('uploadImg/B05BgJ_school-uniform.jpg') }}</td>
</td>
<td>{{ link_to_route('users.edit', 'Edit',
array($user->id), array('class' => 'btn btn-info')) }}</td>
<td>
{{ Form::open(array('method'
=> 'DELETE', 'route' => array('users.destroy', $user->id))) }}
{{ Form::submit('Delete', array('class'
=> 'btn btn-danger')) }}
{{ Form::close() }}
</td>
</tr>
@endforeach
</tbody>
</table>
<div class="pagination"><?php echo $users->links(); ?></div>
@else
There are no users
@endif
@stop
var_dumpthe image url{{ HTML::image('uploadImg/B05BgJ_school-uniform.jpg') }}outputs ?