@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Faker\Generator as Faker; |
| 6 | 6 | |
| 7 | -$factory->define(App\CustomerNotes::class, function (Faker $faker) { |
|
| 7 | +$factory->define(App\CustomerNotes::class, function(Faker $faker) { |
|
| 8 | 8 | return [ |
| 9 | 9 | 'cust_id' => factory(App\Customers::class)->create()->cust_id, |
| 10 | 10 | 'user_id' => 1, |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Faker\Generator as Faker; |
| 6 | 6 | |
| 7 | -$factory->define(App\CustomerContacts::class, function (Faker $faker) { |
|
| 7 | +$factory->define(App\CustomerContacts::class, function(Faker $faker) { |
|
| 8 | 8 | return [ |
| 9 | 9 | 'cust_id' => factory(App\Customers::class)->create()->cust_id, |
| 10 | 10 | 'name' => $faker->name, |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | ]; |
| 13 | 13 | }); |
| 14 | 14 | |
| 15 | -$factory->define(App\CustomerFiles::class, function (Faker $faker) { |
|
| 15 | +$factory->define(App\CustomerFiles::class, function(Faker $faker) { |
|
| 16 | 16 | return [ |
| 17 | 17 | 'file_id' => factory(App\Files::class)->create()->file_id, |
| 18 | 18 | 'file_type_id' => 1, |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | use App\Model; |
| 6 | 6 | use Faker\Generator as Faker; |
| 7 | 7 | |
| 8 | -$factory->define(App\FileLinkFiles::class, function (Faker $faker) { |
|
| 8 | +$factory->define(App\FileLinkFiles::class, function(Faker $faker) { |
|
| 9 | 9 | return [ |
| 10 | 10 | 'link_id' => factory(App\FileLinks::class)->create()->link_id, |
| 11 | 11 | 'file_id' => factory(App\Files::class)->create()->file_id, |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | class TechTips extends Model |
| 8 | 8 | { |
| 9 | 9 | protected $primaryKey = 'tip_id'; |
| 10 | - protected $fillable = ['user_id', 'subject', 'documentation', 'description', 'created_at']; // ToDo: Remove Created_at - future build |
|
| 10 | + protected $fillable = ['user_id', 'subject', 'documentation', 'description', 'created_at']; // ToDo: Remove Created_at - future build |
|
| 11 | 11 | |
| 12 | 12 | public function user() |
| 13 | 13 | { |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | |
| 111 | 111 | // Get the types of documents that can be filtered |
| 112 | 112 | // $fileTypes = SystemFileTypes::all(); |
| 113 | - $typesArr = ['Tech Tip', 'Documentation']; |
|
| 113 | + $typesArr = ['Tech Tip', 'Documentation']; |
|
| 114 | 114 | // foreach($fileTypes as $type) |
| 115 | 115 | // { |
| 116 | 116 | // $typesArr[] = $type->description; |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | |
| 275 | 275 | public function search(Request $request) |
| 276 | 276 | { |
| 277 | - Log::debug('request Data -> '. $request->getContent()); |
|
| 277 | + Log::debug('request Data -> '.$request->getContent()); |
|
| 278 | 278 | $tips = []; |
| 279 | 279 | |
| 280 | 280 | // Determine if the search form is empty or has data in it |
@@ -22,16 +22,16 @@ |
||
| 22 | 22 | |
| 23 | 23 | // Insert default settings |
| 24 | 24 | DB::table('settings')->insert([ |
| 25 | - ['created_at' => \Carbon\Carbon::now(), 'key' => 'app.logo', 'value' => config('app.logo')], |
|
| 26 | - ['created_at' => \Carbon\Carbon::now(), 'key' => 'app.timezone', 'value' => config('app.timezone')], |
|
| 27 | - ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.host', 'value' => config('mail.host')], |
|
| 28 | - ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.port', 'value' => config('mail.port')], |
|
| 29 | - ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.encryption', 'value' => config('mail.encryption')], |
|
| 30 | - ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.username', 'value' => config('mail.username')], |
|
| 31 | - ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.password', 'value' => config('mail.password')], |
|
| 25 | + ['created_at' => \Carbon\Carbon::now(), 'key' => 'app.logo', 'value' => config('app.logo')], |
|
| 26 | + ['created_at' => \Carbon\Carbon::now(), 'key' => 'app.timezone', 'value' => config('app.timezone')], |
|
| 27 | + ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.host', 'value' => config('mail.host')], |
|
| 28 | + ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.port', 'value' => config('mail.port')], |
|
| 29 | + ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.encryption', 'value' => config('mail.encryption')], |
|
| 30 | + ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.username', 'value' => config('mail.username')], |
|
| 31 | + ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.password', 'value' => config('mail.password')], |
|
| 32 | 32 | ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.from.address', 'value' => config('mail.from.address')], |
| 33 | - ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.from.name', 'value' => config('mail.from.name')], |
|
| 34 | - ['created_at' => \Carbon\Carbon::now(), 'key' => 'user.passExpires', 'value' => 30], |
|
| 33 | + ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.from.name', 'value' => config('mail.from.name')], |
|
| 34 | + ['created_at' => \Carbon\Carbon::now(), 'key' => 'user.passExpires', 'value' => 30], |
|
| 35 | 35 | ]); |
| 36 | 36 | } |
| 37 | 37 | |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('user_permissions', function (Blueprint $table) { |
|
| 16 | + Schema::create('user_permissions', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('user_id')->unsigned(); |
| 18 | 18 | $table->boolean('manage_users')->default(0); |
| 19 | 19 | $table->boolean('run_reports')->default(0); |
@@ -68,16 +68,16 @@ |
||
| 68 | 68 | { |
| 69 | 69 | UserSettings::where('user_id', Auth::user()->user_id)->update( |
| 70 | 70 | [ |
| 71 | - 'em_tech_tip' => $request->em_tech_tip === 'on' ? true : false, |
|
| 72 | - 'em_file_link' => $request->em_file_link === 'on' ? true : false, |
|
| 71 | + 'em_tech_tip' => $request->em_tech_tip === 'on' ? true : false, |
|
| 72 | + 'em_file_link' => $request->em_file_link === 'on' ? true : false, |
|
| 73 | 73 | 'em_notification' => $request->em_notification === 'on' ? true : false, |
| 74 | - 'auto_del_link' => $request->auto_del_link === 'on' ? true : false, |
|
| 74 | + 'auto_del_link' => $request->auto_del_link === 'on' ? true : false, |
|
| 75 | 75 | ]); |
| 76 | 76 | |
| 77 | 77 | session()->flash('success', 'User Notifications Updated'); |
| 78 | 78 | |
| 79 | 79 | Log::notice('User Notifications Updated', ['user_id' => Auth::user()->user_id]); |
| 80 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by User ID-' . Auth::user()->user_id); |
|
| 80 | + Log::debug('Route '.Route::currentRouteName().' visited by User ID-'.Auth::user()->user_id); |
|
| 81 | 81 | Log::debug('Submitted Data - ', $request->toArray()); |
| 82 | 82 | return redirect(route('account')); |
| 83 | 83 | } |