Skip to content

Instantly share code, notes, and snippets.

@saaiful
Created October 13, 2014 10:48
Show Gist options
  • Save saaiful/5c04e25e40d506f3e5b5 to your computer and use it in GitHub Desktop.
Save saaiful/5c04e25e40d506f3e5b5 to your computer and use it in GitHub Desktop.
Modifying Datatable Data
<?php
->addColumn('customer',function($model){
return User::find($model->customer)->username." (".$model->customer.")";
})
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment