PHP code example of markese / datatables
1. Go to this page and download the library: Download markese/datatables 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/ */
markese / datatables example snippets
php
// Laravel:
namespace App\Http\Controllers;
use Markese\Datatables\Datatables;
class Controller extends BaseController
{
public function datatablesExample (Request $request)
{
$users = Users::query();
return Datatables::response($users, $request);
}
}