Skip to content

Instantly share code, notes, and snippets.

@cesarockstar1985
Created June 14, 2023 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cesarockstar1985/352f1ac7a91204a9acf6357b7cc26114 to your computer and use it in GitHub Desktop.
Save cesarockstar1985/352f1ac7a91204a9acf6357b7cc26114 to your computer and use it in GitHub Desktop.
'contain' => [
'Churches',
'Males.Profiles',
],
'fields' => [
'male.profile.first_name' => [
'actions' => ['index', 'csv'],
'url' => [
'action' => 'edit',
],
'url_field_param' => 'id',
],
'church.name' => [
'actions' => ['index', 'csv'],
'url' => [
'action' => 'edit',
],
'url_field_param' => 'id',
],
'wedding_status' => [
'actions' => ['index', 'csv'],
'formatter' => function ($value){
if(!$value){
return '-';
}
return ucfirst($value);
},
],
'wedding_date' => [
'actions' => ['index', 'csv'],
],
'name' => [
'actions' => ['index', 'csv'],
'formatter' => function ($entity) {
if (!$entity) {
return '';
}
debug($entity);
// return ChurchesTable::getSupportStatuses()[$value] ?? '-';
},
],
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment