PHP code example of mrugeshtatvasoft / laravel-datatables-oracle

1. Go to this page and download the library: Download mrugeshtatvasoft/laravel-datatables-oracle 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/ */

    

mrugeshtatvasoft / laravel-datatables-oracle example snippets


use mrugeshtatvasoft\DataTables\Facades\DataTables;

return DataTables::eloquent(User::query())->toJson();
return DataTables::query(DB::table('users'))->toJson();
return DataTables::collection(User::all())->toJson();

return DataTables::make(User::query())->toJson();
return DataTables::make(DB::table('users'))->toJson();
return DataTables::make(User::all())->toJson();

'providers' => [
    ...,
    mrugeshtatvasoft\DataTables\DataTablesServiceProvider::class,
]

'aliases' => [
    ...,
    'DataTables' => mrugeshtatvasoft\DataTables\Facades\DataTables::class,
]
bash
php artisan vendor:publish --provider="mrugeshtatvasoft\DataTables\DataTablesServiceProvider"