i try to create crud operation when i go to page i will display this error
extends('layouts.app')
@section(content)
<table class="table table-bordered table-striped">
<tr>
<th width="10%">Event Name</th>
<th width="35%">Event Description</th>
<th width="35%">Event Date</th>
<th width="30%">Action</th>
</tr>
@foreach($data as $row)
<tr>
<td></td>
<td></td>
<td></td>
</tr>
@endforeach
</table>
{!! $data->links() !!}
@endsection
Route::resource('curd','CrudsController');
class CrudsController extends Controller
{
public function index()
{
$data = Crud::latest()->paginate(5);
return view('index', compact('data'))
->with('i', (request()->input('page', 1) - 1) * 5);
}
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2nudo51
via IFTTT
Aucun commentaire:
Enregistrer un commentaire