Donations Appreciated

No one has ever become poor by giving. - Anne Frank, diary of Anne Frank

Click here to lend your support to: Laravel Datatables and make a donation at pledgie.com !

Basic Service Implementation

Basic DataTables Service Implementation Tutorial is available at https://datatables.yajrabox.com/service.

IdNameEmailCreated AtUpdated At

Creating a DataTable class.

php artisan datatables:make UsersDataTable

Example Usage:

public function getUsers(UsersDataTable $dataTable)
{
    return $dataTable->render('path.to.table.view');
}

Example View:

@extends('app')

@section('content')
{!! $dataTable->table() !!}
@endsection

@push('scripts')
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.0.3/css/buttons.dataTables.min.css">
<script src="https://cdn.datatables.net/buttons/1.0.3/js/dataTables.buttons.min.js"></script>
<script src="/vendor/datatables/buttons.server-side.js"></script>
{!! $dataTable->scripts() !!}
@endpush