laravel datatables code example
Example 1: datatables
Javascript123$(document).ready( function () { $('#myTable').DataTable();} );
Example 2: yajra laravel datatables rawcolumn
use DataTables;
Route::get('user-data', function() {
$model = App\User::query();
return DataTables::eloquent($model)
->addColumn('link', '<a href="#">Html Column</a>')
->addColumn('action', 'path.to.view')
->rawColumns(['link', 'action'])
->toJson();
});