This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use PhpOffice\PhpSpreadsheet\Spreadsheet; | |
| use PhpOffice\PhpSpreadsheet\IOFactory; | |
| use PhpOffice\PhpSpreadsheet\Style\Alignment; | |
| use PhpOffice\PhpSpreadsheet\Style\NumberFormat; | |
| const FORMAT_CODE = '_(* #,##0_);_(* (#,##0);_(* "-"??_);_(@_)'; | |
| # set row auto height | |
| $worksheet->getRowDimension($rowDetail)->setRowHeight(-1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Extract namespace from a PHP file | |
| * | |
| * @param string $file | |
| * @return string | |
| */ | |
| public function extractNamespace(string $file) : string | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| public function formExtendRefreshFields($formWidget, $fields) | |
| { | |
| $model = $fields['model']->value; | |
| $values = $model::all()->toArray(); | |
| $values = array_column($values, 'code'); | |
| $fields['code']->value = join(', ', $values); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [{"name":"users","color":"Red","position":{"x":92,"y":126},"classname":"User","namespace":"","increment":false,"timestamp":true,"softdelete":false,"column":[{"name":"id","type":"increments","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c87","order":0},{"name":"username","type":"string","length":"","defaultvalue":"bogus","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c185","order":1},{"name":"password","type":"string","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c193","order":2},{"name":"gender","type":"tinyInteger","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillabl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [{"name":"users","color":"Red","position":{"x":92,"y":126},"classname":"User","namespace":"","increment":false,"timestamp":true,"softdelete":false,"column":[{"name":"id","type":"increments","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c87","order":0},{"name":"username","type":"string","length":"","defaultvalue":"bogus","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c185","order":1},{"name":"password","type":"string","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c193","order":2},{"name":"gender","type":"tinyInteger","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillabl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [{"name":"newsfeeds","color":"Red","position":{"x":239,"y":173},"classname":"Newsfeed","namespace":"","increment":"","timestamp":"","softdelete":"","column":[{"name":"id","type":"increments","length":"","defaultvalue":"","enumvalue":"","colid":"c21","order":0},{"name":"title","type":"string","length":"500","defaultvalue":"","enumvalue":"","colid":"c29","order":1},{"name":"content","type":"text","length":"","defaultvalue":"","enumvalue":"","colid":"c37","order":2},{"name":"images","type":"binary","length":"","defaultvalue":"","enumvalue":"","colid":"c45","order":3},{"name":"type","type":"tinyInteger","length":"","defaultvalue":"","enumvalue":"","colid":"c61","order":4},{"name":"calendar_id","type":"integer","length":"","defaultvalue":"","enumvalue":"","colid":"c407","order":5}],"relation":[],"seeding":[]},{"name":"economic_calendar","color":"Green","position":{"x":635,"y":185},"classname":"EconomicCalendar","namespace":"","increment":"","timestamp":"","softdelete":"","column":[{"name":"id","type":"increments", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Illuminate\Http\UploadedFile; | |
| use Validator; | |
| /** | |
| * Bootstrap any application services. | |
| * | |
| * @return void | |
| */ | |
| public function boot() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo update-alternatives --config php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php namespace \Classes; | |
| use Config; | |
| class JWTAuthServiceProvider extends \Tymon\JWTAuth\Providers\JWTAuthServiceProvider | |
| { | |
| /** | |
| * Helper to get the config values. | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $collection = $this->service->accountRegistrantsCollection($this->params); | |
| Utils::exportCSV($collection, Consts::EXPORT_CHUNK_SIZE, $this->file->file_name, [ | |
| 'email' => __('excel.account_registrant.mail_address'), | |
| 'full_name' => __('excel.account_registrant.user_name'), | |
| 'email_affiliate' => __('excel.account_registrant.referral_email'), | |
| 'email_verified' => __('excel.account_registrant.mail_auth'), | |
| 'input_info' => __('excel.account_registrant.registered_information'), | |
| 'phone_verified' => __('excel.account_registrant.phone_verify'), |