Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 299 Bytes

blacklist.md

File metadata and controls

15 lines (11 loc) · 299 Bytes

Black listing columns

Sorting and searching will not work on columns explicitly defined as blacklisted.

use Datatables;

Route::get('user-data', function() {
	$model = App\User::query();

	return Datatables::eloquent($model)
				->blacklist(['password', 'name'])
				->make(true);
});