@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('transaction_types', function (Blueprint $table) { |
|
16 | + Schema::create('transaction_types', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name'); |
19 | 19 | $table->timestamps(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('users', function (Blueprint $table) { |
|
16 | + Schema::create('users', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name'); |
19 | 19 | $table->string('email')->unique(); |
@@ -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 | } |
@@ -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 | } |