26 lines
684 B
PHP
26 lines
684 B
PHP
<?php
|
|
|
|
use App\Models\Customer;
|
|
use App\Models\User;
|
|
use Yajra\DataTables\DataTables;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
*/
|
|
|
|
|
|
include __DIR__ . '/admin.php';
|
|
include __DIR__ . '/customer.php';
|
|
|
|
|
|
Route::get('/users/datatable-test', function () {
|
|
return DataTables::of(Customer::query())->make(true);
|
|
})->name('admin.users.datatable');
|