Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $Arr['borang'] = $columns->column->map( function( $i, $k ) {
- $i->column_id = $i->id;
- if ( count( $i->table ) ) {
- $xp = explode( ':', $i->options );
- $i->row = $xp[0];
- $i->col = $xp[1];
- $i->api_id = isset( $xp[2] ) ? $xp[2] : 0;
- $i->api = Api::select( 'name' )->where( 'id', $i->api_id )->first();
- } else $i->options = explode( '<', $i->options );
- $i->tables = $i->table->keyBy( 'cell' );
- unset( $i->table );
- return $i;
- } );
- return response()->json( $Arr );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement