@@ -13,14 +13,14 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('categories', function (Blueprint $table) { |
|
16 | + Schema::create('categories', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('parent_id')->unsigned()->nullable(); |
19 | 19 | $table->string('name')->unique(); |
20 | 20 | $table->timestamps(); |
21 | 21 | }); |
22 | 22 | |
23 | - Schema::table('categories', function (Blueprint $table) { |
|
23 | + Schema::table('categories', function(Blueprint $table) { |
|
24 | 24 | $table->foreign('parent_id')->references('id')->on('categories'); |
25 | 25 | }); |
26 | 26 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('transactions', function (Blueprint $table) { |
|
16 | + Schema::create('transactions', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('status_id')->unsigned(); |
19 | 19 | $table->integer('type_id')->unsigned(); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $table->timestamps(); |
28 | 28 | }); |
29 | 29 | |
30 | - Schema::table('transactions', function (Blueprint $table) { |
|
30 | + Schema::table('transactions', function(Blueprint $table) { |
|
31 | 31 | $table->foreign('status_id')->references('id')->on('transaction_status'); |
32 | 32 | $table->foreign('type_id')->references('id')->on('transaction_types'); |
33 | 33 | }); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('accounts', function (Blueprint $table) { |
|
16 | + Schema::create('accounts', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name')->unique(); |
19 | 19 | $table->timestamps(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('password_resets', function (Blueprint $table) { |
|
16 | + Schema::create('password_resets', function(Blueprint $table) { |
|
17 | 17 | $table->string('email')->index(); |
18 | 18 | $table->string('token')->index(); |
19 | 19 | $table->timestamp('created_at')->nullable(); |
@@ -13,14 +13,14 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('payees', function (Blueprint $table) { |
|
16 | + Schema::create('payees', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('last_category_id')->unsigned()->nullable(); |
19 | 19 | $table->string('name')->unique(); |
20 | 20 | $table->timestamps(); |
21 | 21 | }); |
22 | 22 | |
23 | - Schema::table('payees', function (Blueprint $table) { |
|
23 | + Schema::table('payees', function(Blueprint $table) { |
|
24 | 24 | $table->foreign('last_category_id')->references('id')->on('categories'); |
25 | 25 | }); |
26 | 26 | } |
@@ -49,7 +49,7 @@ |
||
49 | 49 | $categoryName = $payee->DefCateg; |
50 | 50 | $subCategoryName = $payee->DefSubCateg; |
51 | 51 | |
52 | - $category = Category::where('name', $subCategoryName)->whereHas('parentCategory', function ($query) use ($categoryName) { |
|
52 | + $category = Category::where('name', $subCategoryName)->whereHas('parentCategory', function($query) use ($categoryName) { |
|
53 | 53 | $query->where('name', $categoryName); |
54 | 54 | })->first(); |
55 | 55 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | return $this->hasMany(self::class, 'parent_id'); |
37 | 37 | } |
38 | 38 | |
39 | - public function defaultForPayees(){ |
|
39 | + public function defaultForPayees() { |
|
40 | 40 | return $this->hasMany(Payee::class, 'last_category_id'); |
41 | 41 | } |
42 | 42 | } |
@@ -19,8 +19,8 @@ |
||
19 | 19 | /* |
20 | 20 | * Authenticate the user's personal channel... |
21 | 21 | */ |
22 | - Broadcast::channel('App.User.*', function ($user, $userId) { |
|
23 | - return (int) $user->id === (int) $userId; |
|
22 | + Broadcast::channel('App.User.*', function($user, $userId) { |
|
23 | + return (int)$user->id === (int)$userId; |
|
24 | 24 | }); |
25 | 25 | } |
26 | 26 | } |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | Route::group([ |
55 | 55 | 'middleware' => 'web', |
56 | 56 | 'namespace' => $this->namespace, |
57 | - ], function ($router) { |
|
57 | + ], function($router) { |
|
58 | 58 | require base_path('routes/web.php'); |
59 | 59 | }); |
60 | 60 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | Route::group([ |
72 | 72 | 'middleware' => 'api', |
73 | 73 | 'namespace' => $this->namespace.'\Api', |
74 | - ], function ($router) { |
|
74 | + ], function($router) { |
|
75 | 75 | require base_path('routes/api.php'); |
76 | 76 | }); |
77 | 77 | } |