Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 271 Bytes

remove-column.md

File metadata and controls

15 lines (11 loc) · 271 Bytes

Remove Column

You can remove a column on your response by using removeColumn api.

use DataTables;

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

	return DataTables::eloquent($model)
				->removeColumn('password')
				->toJson();
});