@@ -149,21 +149,21 @@ |
||
149 | 149 | <?php |
150 | 150 | $font = new \crocodicstudio\crudbooster\helpers\FontAwesome(); |
151 | 151 | $fontData = [ |
152 | - ["data"=>$font->text(),"label"=>"Text"], |
|
153 | - ["data"=>$font->web(),"label"=>"Web"], |
|
154 | - ["data"=>$font->video(),"label"=>"Video"], |
|
155 | - ["data"=>$font->transportation(),"label"=>"Transportation"], |
|
156 | - ["data"=>$font->payment(),"label"=>"Payment"], |
|
157 | - ["data"=>$font->medical(),"label"=>"Medical"], |
|
158 | - ["data"=>$font->hand(),"label"=>"Hand"], |
|
159 | - ["data"=>$font->fileType(),"label"=>"File Type"], |
|
160 | - ["data"=>$font->directional(),"label"=>"Directional"], |
|
161 | - ["data"=>$font->currency(),"label"=>"Currency"], |
|
162 | - ["data"=>$font->chart(),"label"=>"Chart"], |
|
163 | - ["data"=>$font->brands(),"label"=>"Brand"], |
|
164 | - ["data"=>$font->gender(),"label"=>"Gender"], |
|
165 | - ["data"=>$font->form(),"label"=>"Form"], |
|
166 | - ["data"=>$font->spinner(),"label"=>"Spinner"] |
|
152 | + ["data"=>$font->text(), "label"=>"Text"], |
|
153 | + ["data"=>$font->web(), "label"=>"Web"], |
|
154 | + ["data"=>$font->video(), "label"=>"Video"], |
|
155 | + ["data"=>$font->transportation(), "label"=>"Transportation"], |
|
156 | + ["data"=>$font->payment(), "label"=>"Payment"], |
|
157 | + ["data"=>$font->medical(), "label"=>"Medical"], |
|
158 | + ["data"=>$font->hand(), "label"=>"Hand"], |
|
159 | + ["data"=>$font->fileType(), "label"=>"File Type"], |
|
160 | + ["data"=>$font->directional(), "label"=>"Directional"], |
|
161 | + ["data"=>$font->currency(), "label"=>"Currency"], |
|
162 | + ["data"=>$font->chart(), "label"=>"Chart"], |
|
163 | + ["data"=>$font->brands(), "label"=>"Brand"], |
|
164 | + ["data"=>$font->gender(), "label"=>"Gender"], |
|
165 | + ["data"=>$font->form(), "label"=>"Form"], |
|
166 | + ["data"=>$font->spinner(), "label"=>"Spinner"] |
|
167 | 167 | ]; |
168 | 168 | ?> |
169 | 169 | @foreach($fontData as $f) |
@@ -26,16 +26,16 @@ |
||
26 | 26 | /* |
27 | 27 | * For security reason we have limit the upload file formats bellow |
28 | 28 | */ |
29 | - 'UPLOAD_FILE_EXTENSION_ALLOWED' => ['jpg','jpeg','png','gif','pdf','xls','xlsx','doc','docx','txt','zip','rar','rtf'], |
|
29 | + 'UPLOAD_FILE_EXTENSION_ALLOWED' => ['jpg', 'jpeg', 'png', 'gif', 'pdf', 'xls', 'xlsx', 'doc', 'docx', 'txt', 'zip', 'rar', 'rtf'], |
|
30 | 30 | |
31 | - 'UPLOAD_IMAGE_EXTENSION_ALLOWED' => ['jpg','jpeg','png','gif'], |
|
31 | + 'UPLOAD_IMAGE_EXTENSION_ALLOWED' => ['jpg', 'jpeg', 'png', 'gif'], |
|
32 | 32 | |
33 | 33 | /* |
34 | 34 | * Data Migration table additional |
35 | 35 | * You can define in this array what the tables you want to include in "php artisan crudbooster:data_migration" |
36 | 36 | * The default is all cb_ prefix will be include in data migration |
37 | 37 | */ |
38 | - 'ADDITIONAL_DATA_MIGRATION'=>['users','migrations'], |
|
38 | + 'ADDITIONAL_DATA_MIGRATION'=>['users', 'migrations'], |
|
39 | 39 | |
40 | 40 | /* |
41 | 41 | * Google FCM Server Key is used to send a notification via FireBase cloud message |
@@ -32,13 +32,13 @@ discard block |
||
32 | 32 | public function handle() |
33 | 33 | { |
34 | 34 | |
35 | - if($this->option("generate")) { |
|
35 | + if ($this->option("generate")) { |
|
36 | 36 | $this->info("== Generating Seeder =="); |
37 | 37 | $this->generateSeeder(); |
38 | 38 | $this->info("== Finish =="); |
39 | - }else{ |
|
39 | + } else { |
|
40 | 40 | $this->info("== Importing the seeder =="); |
41 | - $this->call("db:seed",["--class"=>"CbMigrationSeeder"]); |
|
41 | + $this->call("db:seed", ["--class"=>"CbMigrationSeeder"]); |
|
42 | 42 | $this->info("== Finish =="); |
43 | 43 | } |
44 | 44 | |
@@ -50,18 +50,18 @@ discard block |
||
50 | 50 | $php_string = ""; |
51 | 51 | $additional_tables = cbConfig("ADDITIONAL_DATA_MIGRATION"); |
52 | 52 | |
53 | - foreach($tables as $table) { |
|
54 | - if(substr($table,0,3) == "cb_" || in_array($table, $additional_tables)) { |
|
53 | + foreach ($tables as $table) { |
|
54 | + if (substr($table, 0, 3) == "cb_" || in_array($table, $additional_tables)) { |
|
55 | 55 | $this->info("Create seeder for table : ".$table); |
56 | 56 | $rows = DB::table($table)->get(); |
57 | 57 | $data = []; |
58 | - foreach($rows as $i=>$row) { |
|
58 | + foreach ($rows as $i=>$row) { |
|
59 | 59 | $data[$i] = []; |
60 | - foreach($row as $key=>$val) { |
|
60 | + foreach ($row as $key=>$val) { |
|
61 | 61 | $data[$i][$key] = $val; |
62 | 62 | } |
63 | 63 | } |
64 | - if(count($data)!=0) { |
|
64 | + if (count($data) != 0) { |
|
65 | 65 | $php_string .= 'DB::table(\''.$table.'\')->delete();'."\n\t\t\t"; |
66 | 66 | $php_string .= 'DB::table(\''.$table.'\')->insert('.min_var_export($data).');'."\n\t\t\t"; |
67 | 67 | } |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | $composer_path = ''; |
92 | 92 | if (file_exists(getcwd().'/composer.phar')) { |
93 | 93 | $composer_path = '"'.PHP_BINARY.'" '.getcwd().'/composer.phar'; |
94 | - }else{ |
|
94 | + } else { |
|
95 | 95 | $composer_path = 'composer'; |
96 | 96 | } |
97 | 97 |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $this->info("== Generating Seeder =="); |
37 | 37 | $this->generateSeeder(); |
38 | 38 | $this->info("== Finish =="); |
39 | - }else{ |
|
39 | + } else{ |
|
40 | 40 | $this->info("== Importing the seeder =="); |
41 | 41 | $this->call("db:seed",["--class"=>"CbMigrationSeeder"]); |
42 | 42 | $this->info("== Finish =="); |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | $composer_path = ''; |
92 | 92 | if (file_exists(getcwd().'/composer.phar')) { |
93 | 93 | $composer_path = '"'.PHP_BINARY.'" '.getcwd().'/composer.phar'; |
94 | - }else{ |
|
94 | + } else{ |
|
95 | 95 | $composer_path = 'composer'; |
96 | 96 | } |
97 | 97 |