1<!-- index.blade.php -->
2
3@extends('master')
4@section('content')
5<table class="table table-striped">
6 <thead>
7 <th>ID</th>
8 <th>Full Name</th>
9 <th>Address</th>
10 <th>City</th>
11 <th>Zip Code</th>
12 <th>Action</th>
13 </thead>
14 <tbody>
15 @foreach($users as $user)
16 <tr>
17 <td>{{$user->id}}</td>
18 <td>{{$user->full_name}}</td>
19 <td>{{$user->street_address}}</td>
20 <td>{{$user->city}}</td>
21 <td>{{$user->zip_code}}</td>
22 </tr>
23 @endforeach
24 </tbody>
25</table>
26@endsection
1// somewhere early in your project's loading, require the Composer autoloader
2// see: http://getcomposer.org/doc/00-intro.md
3require 'vendor/autoload.php';