PHP code example of ug-code / eloquent-datatable
1. Go to this page and download the library: Download ug-code/eloquent-datatable library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ug-code / eloquent-datatable example snippets
$db =Profiles::with(['users']);
echo json_encode(Datatable::make($db));