@@ -108,7 +108,7 @@ |
||
108 | 108 | |
109 | 109 | foreach($fields as $data) |
110 | 110 | { |
111 | - $fieldName = 'field_' . $data->field_id; |
|
111 | + $fieldName = 'field_'.$data->field_id; |
|
112 | 112 | if(isset($request->$fieldName)) |
113 | 113 | { |
114 | 114 | Log::debug($request->$fieldName); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | public function up() |
16 | 16 | { |
17 | - Schema::create('tech_tip_types', function (Blueprint $table) { |
|
17 | + Schema::create('tech_tip_types', function(Blueprint $table) { |
|
18 | 18 | $table->bigIncrements('tip_type_id'); |
19 | 19 | $table->text('description'); |
20 | 20 | $table->timestamps(); |
@@ -59,7 +59,7 @@ |
||
59 | 59 | return [ |
60 | 60 | // |
61 | 61 | 'type' => 'warning', |
62 | - 'message' => 'New Tech Tip Created - ' . $this->details->subject, |
|
62 | + 'message' => 'New Tech Tip Created - '.$this->details->subject, |
|
63 | 63 | 'link' => url(route( |
64 | 64 | 'tip.details', |
65 | 65 | [ |
@@ -82,7 +82,8 @@ discard block |
||
82 | 82 | // Added the ability to set an expiration date for user passwords - will force them to change after this expires |
83 | 83 | private function addPasswordExpiresColumn() |
84 | 84 | { |
85 | - if(!Schema::hasColumn('users', 'password_expires')) { |
|
85 | + if(!Schema::hasColumn('users', 'password_expires')) |
|
86 | + { |
|
86 | 87 | Schema::table('users', function(Blueprint $table) { |
87 | 88 | $table->timestamp('password_expires') |
88 | 89 | ->nullable() |
@@ -153,7 +154,8 @@ discard block |
||
153 | 154 | // Added a 'hidden' attribute to system customer data types to allow passwords to not be viewed unless clicked or focus |
154 | 155 | private function addHiddenColumn() |
155 | 156 | { |
156 | - if(!Schema::hasColumn('system_data_field_types', 'hidden')) { |
|
157 | + if(!Schema::hasColumn('system_data_field_types', 'hidden')) |
|
158 | + { |
|
157 | 159 | Schema::table('system_cust_data_types', function(Blueprint $table) { |
158 | 160 | $table->boolean('hidden') |
159 | 161 | ->default(0) |
@@ -165,7 +167,8 @@ discard block |
||
165 | 167 | // Update the File links table - add cust_id and note column |
166 | 168 | private function addColumnsToFileLinksTable() |
167 | 169 | { |
168 | - if(!Schema::hasColumn('file_links', 'cust_id')) { |
|
170 | + if(!Schema::hasColumn('file_links', 'cust_id')) |
|
171 | + { |
|
169 | 172 | Schema::table('file_links', function(Blueprint $table) { |
170 | 173 | $table->integer('cust_id') |
171 | 174 | ->unsigned() |
@@ -174,7 +177,8 @@ discard block |
||
174 | 177 | $table->foreign('cust_id')->references('cust_id')->on('customers')->onUpdate('cascade')->onDelete('cascade'); |
175 | 178 | }); |
176 | 179 | } |
177 | - if(!Schema::hasColumn('file_links', 'note')) { |
|
180 | + if(!Schema::hasColumn('file_links', 'note')) |
|
181 | + { |
|
178 | 182 | Schema::table('file_links', function(Blueprint $table) { |
179 | 183 | $table->longText('note') |
180 | 184 | ->nullable() |
@@ -182,7 +186,8 @@ discard block |
||
182 | 186 | }); |
183 | 187 | // Migrate the instructions from the old table to the new column |
184 | 188 | $instructions = DB::select('SELECT * FROM `file_link_instructions`'); |
185 | - foreach($instructions as $ins) { |
|
189 | + foreach($instructions as $ins) |
|
190 | + { |
|
186 | 191 | FileLinks::find($ins->link_id)->update([ |
187 | 192 | 'note' => $ins->instruction |
188 | 193 | ]); |
@@ -193,7 +198,8 @@ discard block |
||
193 | 198 | // Add Notes column to the file links files table |
194 | 199 | private function addNotesColumnToFileLinkFiles() |
195 | 200 | { |
196 | - if(!Schema::hasColumn('file_link_files', 'note')) { |
|
201 | + if(!Schema::hasColumn('file_link_files', 'note')) |
|
202 | + { |
|
197 | 203 | Schema::table('file_link_files', function(Blueprint $table) { |
198 | 204 | $table->longText('note') |
199 | 205 | ->nullable() |
@@ -201,7 +207,8 @@ discard block |
||
201 | 207 | }); |
202 | 208 | // Migrate the existing notes to the new table |
203 | 209 | $notes = DB::select('SELECT * FROM `file_link_notes`'); |
204 | - foreach($notes as $note) { |
|
210 | + foreach($notes as $note) |
|
211 | + { |
|
205 | 212 | FileLinkFiles::where('file_id', $note->file_id)->update([ |
206 | 213 | 'note' => $note->note |
207 | 214 | ]); |
@@ -212,7 +219,8 @@ discard block |
||
212 | 219 | // Add the documentation column to the tech tips table |
213 | 220 | private function migrateSystemDocumentation() |
214 | 221 | { |
215 | - if(!Schema::hasColumn('tech_tips', 'tip_type_id')) { |
|
222 | + if(!Schema::hasColumn('tech_tips', 'tip_type_id')) |
|
223 | + { |
|
216 | 224 | Schema::table('tech_tips', function(Blueprint $table) { |
217 | 225 | $table->bigInteger('tip_type_id')->unsigned()->after('public')->default(1); |
218 | 226 | $table->foreign('tip_type_id')->references('tip_type_id')->on('tech_tip_types')->onUpdate('cascade'); |
@@ -220,7 +228,8 @@ discard block |
||
220 | 228 | |
221 | 229 | // Move all of the system files over to the tech tips table |
222 | 230 | $sysFiles = DB::select('SELECT * FROM `system_files`'); |
223 | - foreach($sysFiles as $sysFile) { |
|
231 | + foreach($sysFiles as $sysFile) |
|
232 | + { |
|
224 | 233 | $newTip = TechTips::create([ |
225 | 234 | 'user_id' => $sysFile->user_id, |
226 | 235 | 'public' => 0, |
@@ -314,7 +323,8 @@ discard block |
||
314 | 323 | // Remove the system files and system file types table |
315 | 324 | private function removeSystemFilesTables() |
316 | 325 | { |
317 | - if(Schema::hasTable('system_files')) { |
|
326 | + if(Schema::hasTable('system_files')) |
|
327 | + { |
|
318 | 328 | Schema::table('system_files', function(Blueprint $table) { |
319 | 329 | $table->dropForeign(['sys_id']); |
320 | 330 | $table->dropForeign(['type_id']); |
@@ -360,7 +370,8 @@ discard block |
||
360 | 370 | // Add soft deletes to tech tips table to prevent accidental deletes |
361 | 371 | private function addSoftDeleteToTechTips() |
362 | 372 | { |
363 | - if (!Schema::hasColumn('tech_tips', 'deleted_at')) { |
|
373 | + if (!Schema::hasColumn('tech_tips', 'deleted_at')) |
|
374 | + { |
|
364 | 375 | Schema::table('tech_tips', function (Blueprint $table) { |
365 | 376 | $table->softDeletes()->after('description'); |
366 | 377 | }); |
@@ -65,8 +65,8 @@ discard block |
||
65 | 65 | private function updatePhoneIcons() |
66 | 66 | { |
67 | 67 | $newIcons = [ |
68 | - ['description' => 'Home', 'icon_class' => 'ti-home'], |
|
69 | - ['description' => 'Work', 'icon_class' => 'ti-briefcase'], |
|
68 | + ['description' => 'Home', 'icon_class' => 'ti-home'], |
|
69 | + ['description' => 'Work', 'icon_class' => 'ti-briefcase'], |
|
70 | 70 | ['description' => 'Mobile', 'icon_class' => 'ti-mobile'], |
71 | 71 | ]; |
72 | 72 | |
@@ -363,8 +363,8 @@ discard block |
||
363 | 363 | // Add soft deletes to tech tips table to prevent accidental deletes |
364 | 364 | private function addSoftDeleteToTechTips() |
365 | 365 | { |
366 | - if (!Schema::hasColumn('tech_tips', 'deleted_at')) { |
|
367 | - Schema::table('tech_tips', function (Blueprint $table) { |
|
366 | + if(!Schema::hasColumn('tech_tips', 'deleted_at')) { |
|
367 | + Schema::table('tech_tips', function(Blueprint $table) { |
|
368 | 368 | $table->softDeletes()->after('description'); |
369 | 369 | }); |
370 | 370 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | // Verify that the upload is valid and being processed |
49 | 49 | if($receiver->isUploaded() === false) |
50 | 50 | { |
51 | - Log::error('Upload File Missing - ' . |
|
51 | + Log::error('Upload File Missing - '. |
|
52 | 52 | /** @scrutinizer ignore-type */ |
53 | 53 | $request->toArray()); |
54 | 54 | throw new UploadMissingFileException(); |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | use SoftDeletes; |
11 | 11 | |
12 | 12 | protected $primaryKey = 'tip_id'; |
13 | - protected $fillable = ['user_id', 'subject', 'tip_type_id', 'description', 'created_at']; // ToDo: Remove Created_at - future build |
|
13 | + protected $fillable = ['user_id', 'subject', 'tip_type_id', 'description', 'created_at']; // ToDo: Remove Created_at - future build |
|
14 | 14 | protected $hidden = ['public', 'user_id', 'tip_type_id']; |
15 | 15 | protected $casts = [ |
16 | 16 | 'created_at' => 'datetime:M d, Y', |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | public function systemTypes() |
21 | 21 | { |
22 | - return $this->hasManyThrough('App\SystemTypes', 'App\TechTipSystems', 'tip_id', 'sys_id', 'tip_id', 'sys_id'); |
|
22 | + return $this->hasManyThrough('App\SystemTypes', 'App\TechTipSystems', 'tip_id', 'sys_id', 'tip_id', 'sys_id'); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | public function user() |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | Log::debug('request Data -> ', $request->toArray()); |
64 | 64 | |
65 | 65 | // See if there are any search paramaters entered |
66 | - if (!$request->search['searchText'] && !isset($request->search['articleType']) && !isset($request->search['systemType'])) { |
|
66 | + if(!$request->search['searchText'] && !isset($request->search['articleType']) && !isset($request->search['systemType'])) { |
|
67 | 67 | // No search paramaters, send all tech tips |
68 | 68 | $tips = new TechTipsCollection( |
69 | 69 | TechTips::orderBy('created_at', 'DESC') |
@@ -72,21 +72,21 @@ discard block |
||
72 | 72 | ); |
73 | 73 | } else { |
74 | 74 | $article = isset($request->search['articleType']) ? true : false; |
75 | - $system = isset($request->search['systemType']) ? true : false; |
|
75 | + $system = isset($request->search['systemType']) ? true : false; |
|
76 | 76 | // Search paramaters, filter results |
77 | 77 | $tips = new TechTipsCollection( |
78 | 78 | TechTips::orderBy('created_at', 'DESC') |
79 | 79 | // Search by id or a phrase in the title or description |
80 | - ->where(function ($query) use ($request) { |
|
81 | - $query->where('subject', 'like', '%' . $request->search['searchText'] . '%') |
|
82 | - ->orWhere('tip_id', 'like', '%' . $request->search['searchText'] . '%') |
|
83 | - ->orWhere('description', 'like', '%' . $request->search['searchText'] . '%'); |
|
80 | + ->where(function($query) use ($request) { |
|
81 | + $query->where('subject', 'like', '%'.$request->search['searchText'].'%') |
|
82 | + ->orWhere('tip_id', 'like', '%'.$request->search['searchText'].'%') |
|
83 | + ->orWhere('description', 'like', '%'.$request->search['searchText'].'%'); |
|
84 | 84 | }) |
85 | - ->when($article, function ($query) use ($request) { |
|
85 | + ->when($article, function($query) use ($request) { |
|
86 | 86 | $query->whereIn('tip_type_id', $request->search['articleType']); |
87 | 87 | }) |
88 | - ->when($system, function ($query) use ($request) { |
|
89 | - $query->whereHas('SystemTypes', function ($query) use ($request) { |
|
88 | + ->when($system, function($query) use ($request) { |
|
89 | + $query->whereHas('SystemTypes', function($query) use ($request) { |
|
90 | 90 | $query->whereIn('system_types.sys_id', $request->search['systemType']); |
91 | 91 | }); |
92 | 92 | }) |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | $save = $receiver->receive(); |
159 | 159 | |
160 | 160 | // See if the uploade has finished |
161 | - if ($save->isFinished()) { |
|
161 | + if($save->isFinished()) { |
|
162 | 162 | $this->saveFile($save->getFile()); |
163 | 163 | |
164 | 164 | return 'uploaded successfully'; |
@@ -167,8 +167,8 @@ discard block |
||
167 | 167 | // Get the current progress |
168 | 168 | $handler = $save->handler(); |
169 | 169 | |
170 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by User ID-' . Auth::user()->user_id); |
|
171 | - Log::debug('File being uploaded. Percentage done - ' . $handler->getPercentageDone()); |
|
170 | + Log::debug('Route '.Route::currentRouteName().' visited by User ID-'.Auth::user()->user_id); |
|
171 | + Log::debug('File being uploaded. Percentage done - '.$handler->getPercentageDone()); |
|
172 | 172 | return response()->json([ |
173 | 173 | 'done' => $handler->getPercentageDone(), |
174 | 174 | 'status' => true |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | } |
210 | 210 | |
211 | 211 | // Log stored file |
212 | - Log::info('File Stored', ['file_id' => $fileID, 'file_path' => $filePath . DIRECTORY_SEPARATOR . $fileName]); |
|
212 | + Log::info('File Stored', ['file_id' => $fileID, 'file_path' => $filePath.DIRECTORY_SEPARATOR.$fileName]); |
|
213 | 213 | return $fileID; |
214 | 214 | } |
215 | 215 | |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | // Details controller - will move to the show controller with just the tech tip id |
280 | 280 | public function details($id, $subject) |
281 | 281 | { |
282 | - if (session()->has('newTipFile')) { |
|
282 | + if(session()->has('newTipFile')) { |
|
283 | 283 | session()->forget('newTipFile'); |
284 | 284 | } |
285 | 285 | |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | // Add or remove this tip as a favorite of the user |
310 | 310 | public function toggleFav($action, $id) |
311 | 311 | { |
312 | - switch ($action) { |
|
312 | + switch($action) { |
|
313 | 313 | case 'add': |
314 | 314 | TechTipFavs::create([ |
315 | 315 | 'user_id' => Auth::user()->user_id, |
@@ -322,7 +322,7 @@ discard block |
||
322 | 322 | break; |
323 | 323 | } |
324 | 324 | |
325 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by User ID-' . Auth::user()->user_id); |
|
325 | + Log::debug('Route '.Route::currentRouteName().' visited by User ID-'.Auth::user()->user_id); |
|
326 | 326 | Log::debug('Tech Tip Bookmark Updated.', [ |
327 | 327 | 'user_id' => Auth::user()->user_id, |
328 | 328 | 'tip_id' => $id, |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | $this->authorize('hasAccess', 'edit_tech_tip'); |
338 | 338 | $tipData = TechTips::where('tip_id', $id)->with('User')->with('SystemTypes')->with('TechTipTypes')->first(); |
339 | 339 | |
340 | - if (!$tipData) { |
|
340 | + if(!$tipData) { |
|
341 | 341 | return view('tips.tipNotFound'); |
342 | 342 | } |
343 | 343 | |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | $systemsArr = new SystemCategoriesCollection(SystemCategories::with('SystemTypes')->get()); |
346 | 346 | $files = TechTipFiles::where('tip_id', $id)->with('Files')->get(); |
347 | 347 | |
348 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by User ID-' . Auth::user()->user_id); |
|
348 | + Log::debug('Route '.Route::currentRouteName().' visited by User ID-'.Auth::user()->user_id); |
|
349 | 349 | return view('tips.editTip', [ |
350 | 350 | 'tipTypes' => $typesArr, |
351 | 351 | 'sysTypes' => $systemsArr, |
@@ -370,9 +370,9 @@ discard block |
||
370 | 370 | $receiver = new FileReceiver('file', $request, HandlerFactory::classFromRequest($request)); |
371 | 371 | |
372 | 372 | // Verify if there is a file to be processed or not |
373 | - if ($receiver->isUploaded() === false || $request->_completed) { |
|
373 | + if($receiver->isUploaded() === false || $request->_completed) { |
|
374 | 374 | $this->storeUpdatedTip($request, $id); |
375 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by User ID-' . Auth::user()->user_id); |
|
375 | + Log::debug('Route '.Route::currentRouteName().' visited by User ID-'.Auth::user()->user_id); |
|
376 | 376 | return response()->json(['tip_id' => $id]); |
377 | 377 | } |
378 | 378 | |
@@ -380,7 +380,7 @@ discard block |
||
380 | 380 | $save = $receiver->receive(); |
381 | 381 | |
382 | 382 | // See if the uploade has finished |
383 | - if ($save->isFinished()) { |
|
383 | + if($save->isFinished()) { |
|
384 | 384 | $this->saveFile($save->getFile(), $id); |
385 | 385 | |
386 | 386 | return 'uploaded successfully'; |
@@ -389,8 +389,8 @@ discard block |
||
389 | 389 | // Get the current progress |
390 | 390 | $handler = $save->handler(); |
391 | 391 | |
392 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by User ID-' . Auth::user()->user_id); |
|
393 | - Log::debug('File being uploaded. Percentage done - ' . $handler->getPercentageDone()); |
|
392 | + Log::debug('Route '.Route::currentRouteName().' visited by User ID-'.Auth::user()->user_id); |
|
393 | + Log::debug('File being uploaded. Percentage done - '.$handler->getPercentageDone()); |
|
394 | 394 | return response()->json([ |
395 | 395 | 'done' => $handler->getPercentageDone(), |
396 | 396 | 'status' => true |
@@ -63,14 +63,17 @@ discard block |
||
63 | 63 | Log::debug('request Data -> ', $request->toArray()); |
64 | 64 | |
65 | 65 | // See if there are any search paramaters entered |
66 | - if (!$request->search['searchText'] && !isset($request->search['articleType']) && !isset($request->search['systemType'])) { |
|
66 | + if (!$request->search['searchText'] && !isset($request->search['articleType']) && !isset($request->search['systemType'])) |
|
67 | + { |
|
67 | 68 | // No search paramaters, send all tech tips |
68 | 69 | $tips = new TechTipsCollection( |
69 | 70 | TechTips::orderBy('created_at', 'DESC') |
70 | 71 | ->with('SystemTypes') |
71 | 72 | ->paginate($request->pagination['perPage']) |
72 | 73 | ); |
73 | - } else { |
|
74 | + } |
|
75 | + else |
|
76 | + { |
|
74 | 77 | $article = isset($request->search['articleType']) ? true : false; |
75 | 78 | $system = isset($request->search['systemType']) ? true : false; |
76 | 79 | // Search paramaters, filter results |
@@ -158,7 +161,8 @@ discard block |
||
158 | 161 | $save = $receiver->receive(); |
159 | 162 | |
160 | 163 | // See if the uploade has finished |
161 | - if ($save->isFinished()) { |
|
164 | + if ($save->isFinished()) |
|
165 | + { |
|
162 | 166 | $this->saveFile($save->getFile()); |
163 | 167 | |
164 | 168 | return 'uploaded successfully'; |
@@ -264,8 +268,7 @@ discard block |
||
264 | 268 | if(!$tipData->supressEmail) |
265 | 269 | { |
266 | 270 | $details = TechTips::find($tipID); |
267 | - $users = User::where('active', 1)->whereHas('UserSettings', function($query) |
|
268 | - { |
|
271 | + $users = User::where('active', 1)->whereHas('UserSettings', function($query) { |
|
269 | 272 | $query->where('em_tech_tip', 1); |
270 | 273 | })->get(); |
271 | 274 | |
@@ -279,7 +282,8 @@ discard block |
||
279 | 282 | // Details controller - will move to the show controller with just the tech tip id |
280 | 283 | public function details($id, $subject) |
281 | 284 | { |
282 | - if (session()->has('newTipFile')) { |
|
285 | + if (session()->has('newTipFile')) |
|
286 | + { |
|
283 | 287 | session()->forget('newTipFile'); |
284 | 288 | } |
285 | 289 | |
@@ -309,7 +313,8 @@ discard block |
||
309 | 313 | // Add or remove this tip as a favorite of the user |
310 | 314 | public function toggleFav($action, $id) |
311 | 315 | { |
312 | - switch ($action) { |
|
316 | + switch ($action) |
|
317 | + { |
|
313 | 318 | case 'add': |
314 | 319 | TechTipFavs::create([ |
315 | 320 | 'user_id' => Auth::user()->user_id, |
@@ -337,7 +342,8 @@ discard block |
||
337 | 342 | $this->authorize('hasAccess', 'edit_tech_tip'); |
338 | 343 | $tipData = TechTips::where('tip_id', $id)->with('User')->with('SystemTypes')->with('TechTipTypes')->first(); |
339 | 344 | |
340 | - if (!$tipData) { |
|
345 | + if (!$tipData) |
|
346 | + { |
|
341 | 347 | return view('tips.tipNotFound'); |
342 | 348 | } |
343 | 349 | |
@@ -370,7 +376,8 @@ discard block |
||
370 | 376 | $receiver = new FileReceiver('file', $request, HandlerFactory::classFromRequest($request)); |
371 | 377 | |
372 | 378 | // Verify if there is a file to be processed or not |
373 | - if ($receiver->isUploaded() === false || $request->_completed) { |
|
379 | + if ($receiver->isUploaded() === false || $request->_completed) |
|
380 | + { |
|
374 | 381 | $this->storeUpdatedTip($request, $id); |
375 | 382 | Log::debug('Route ' . Route::currentRouteName() . ' visited by User ID-' . Auth::user()->user_id); |
376 | 383 | return response()->json(['tip_id' => $id]); |
@@ -380,7 +387,8 @@ discard block |
||
380 | 387 | $save = $receiver->receive(); |
381 | 388 | |
382 | 389 | // See if the uploade has finished |
383 | - if ($save->isFinished()) { |
|
390 | + if ($save->isFinished()) |
|
391 | + { |
|
384 | 392 | $this->saveFile($save->getFile(), $id); |
385 | 393 | |
386 | 394 | return 'uploaded successfully'; |
@@ -25,14 +25,14 @@ |
||
25 | 25 | public function boot() |
26 | 26 | { |
27 | 27 | // Service provider to customize form inputs |
28 | - Form::component('bsText', 'components.form.text', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
28 | + Form::component('bsText', 'components.form.text', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
29 | 29 | Form::component('bsPassword', 'components.form.password', ['name', 'label', 'value' => null, 'attributes' => []]); |
30 | - Form::component('bsNumber', 'components.form.number', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
31 | - Form::component('bsEmail', 'components.form.email', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
32 | - Form::component('bsDate', 'components.form.date', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
30 | + Form::component('bsNumber', 'components.form.number', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
31 | + Form::component('bsEmail', 'components.form.email', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
32 | + Form::component('bsDate', 'components.form.date', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
33 | 33 | Form::component('bsTextarea', 'components.form.textarea', ['name', 'label', 'value' => null, 'attributes' => []]); |
34 | 34 | Form::component('bsCheckbox', 'components.form.checkbox', ['name', 'label', 'value' => 'on', 'checked' => false, 'attributes' => []]); |
35 | - Form::component('bsSelect', 'components.form.select', ['name', 'label', 'list', 'selected' => null, 'attributes' => []]); |
|
35 | + Form::component('bsSelect', 'components.form.select', ['name', 'label', 'list', 'selected' => null, 'attributes' => []]); |
|
36 | 36 | |
37 | 37 | // Custom Submit button |
38 | 38 | Form::component('bsSubmit', 'components.form.submit', ['name']); |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use App\TechTipFiles; |
6 | 6 | |
7 | -$factory->define(TechTipFiles::class, function () { |
|
7 | +$factory->define(TechTipFiles::class, function() { |
|
8 | 8 | return [ |
9 | 9 | 'tip_id' => factory(App\TechTips::class)->create()->tip_id, |
10 | 10 | 'file_id' => factory(App\Files::class)->create()->file_id, |