@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | class SaleDetails extends Model { |
6 | 6 | |
7 | - protected $table = 'sale_details'; |
|
7 | + protected $table = 'sale_details'; |
|
8 | 8 | |
9 | - public $timestamps = false; |
|
9 | + public $timestamps = false; |
|
10 | 10 | |
11 | 11 | } |
12 | 12 | \ No newline at end of file |
@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | class Sales extends Model { |
6 | 6 | |
7 | - protected $table = 'sales'; |
|
7 | + protected $table = 'sales'; |
|
8 | 8 | |
9 | - public $timestamps = false; |
|
9 | + public $timestamps = false; |
|
10 | 10 | |
11 | 11 | } |
12 | 12 | \ No newline at end of file |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | class Settings extends Model { |
6 | 6 | |
7 | - protected $table = 'settings'; |
|
7 | + protected $table = 'settings'; |
|
8 | 8 | |
9 | 9 | public $timestamps = true; |
10 | 10 |
@@ -4,14 +4,14 @@ |
||
4 | 4 | |
5 | 5 | class SnapshotDetails extends Model { |
6 | 6 | |
7 | - protected $table = 'snapshot_details'; |
|
8 | - public $primaryKey = 'csd_id'; |
|
9 | - public $timestamps = false; |
|
7 | + protected $table = 'snapshot_details'; |
|
8 | + public $primaryKey = 'csd_id'; |
|
9 | + public $timestamps = false; |
|
10 | 10 | |
11 | - public function scopeGroup($query, $groupID) { |
|
11 | + public function scopeGroup($query, $groupID) { |
|
12 | 12 | |
13 | - $query->join('cash_snapshots', 'cash_snapshots.cs_id', '=', 'snapshot_details.cs_id') |
|
14 | - ->where('cash_snapshots.group_id', $groupID); |
|
13 | + $query->join('cash_snapshots', 'cash_snapshots.cs_id', '=', 'snapshot_details.cs_id') |
|
14 | + ->where('cash_snapshots.group_id', $groupID); |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | } |
18 | 18 | \ No newline at end of file |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | class SnapshotDetails extends Model { |
6 | 6 | |
7 | - protected $table = 'snapshot_details'; |
|
7 | + protected $table = 'snapshot_details'; |
|
8 | 8 | public $primaryKey = 'csd_id'; |
9 | 9 | public $timestamps = false; |
10 | 10 |
@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | class StockOperations extends Model { |
6 | 6 | |
7 | - protected $table = 'stock_operations'; |
|
7 | + protected $table = 'stock_operations'; |
|
8 | 8 | |
9 | - public $timestamp = false; |
|
9 | + public $timestamp = false; |
|
10 | 10 | |
11 | 11 | } |
12 | 12 | \ No newline at end of file |
@@ -4,31 +4,31 @@ |
||
4 | 4 | |
5 | 5 | class AppServiceProvider extends ServiceProvider { |
6 | 6 | |
7 | - /** |
|
8 | - * Bootstrap any application services. |
|
9 | - * |
|
10 | - * @return void |
|
11 | - */ |
|
12 | - public function boot() |
|
13 | - { |
|
14 | - // |
|
15 | - } |
|
7 | + /** |
|
8 | + * Bootstrap any application services. |
|
9 | + * |
|
10 | + * @return void |
|
11 | + */ |
|
12 | + public function boot() |
|
13 | + { |
|
14 | + // |
|
15 | + } |
|
16 | 16 | |
17 | - /** |
|
18 | - * Register any application services. |
|
19 | - * |
|
20 | - * This service provider is a great spot to register your various container |
|
21 | - * bindings with the application. As you can see, we are registering our |
|
22 | - * "Registrar" implementation here. You can add your own bindings too! |
|
23 | - * |
|
24 | - * @return void |
|
25 | - */ |
|
26 | - public function register() |
|
27 | - { |
|
28 | - $this->app->bind( |
|
29 | - 'Illuminate\Contracts\Auth\Registrar', |
|
30 | - 'App\Services\Registrar' |
|
31 | - ); |
|
32 | - } |
|
17 | + /** |
|
18 | + * Register any application services. |
|
19 | + * |
|
20 | + * This service provider is a great spot to register your various container |
|
21 | + * bindings with the application. As you can see, we are registering our |
|
22 | + * "Registrar" implementation here. You can add your own bindings too! |
|
23 | + * |
|
24 | + * @return void |
|
25 | + */ |
|
26 | + public function register() |
|
27 | + { |
|
28 | + $this->app->bind( |
|
29 | + 'Illuminate\Contracts\Auth\Registrar', |
|
30 | + 'App\Services\Registrar' |
|
31 | + ); |
|
32 | + } |
|
33 | 33 | |
34 | 34 | } |
@@ -5,30 +5,30 @@ |
||
5 | 5 | |
6 | 6 | class BusServiceProvider extends ServiceProvider { |
7 | 7 | |
8 | - /** |
|
9 | - * Bootstrap any application services. |
|
10 | - * |
|
11 | - * @param \Illuminate\Bus\Dispatcher $dispatcher |
|
12 | - * @return void |
|
13 | - */ |
|
14 | - public function boot(Dispatcher $dispatcher) |
|
15 | - { |
|
16 | - $dispatcher->mapUsing(function($command) |
|
17 | - { |
|
18 | - return Dispatcher::simpleMapping( |
|
19 | - $command, 'App\Commands', 'App\Handlers\Commands' |
|
20 | - ); |
|
21 | - }); |
|
22 | - } |
|
8 | + /** |
|
9 | + * Bootstrap any application services. |
|
10 | + * |
|
11 | + * @param \Illuminate\Bus\Dispatcher $dispatcher |
|
12 | + * @return void |
|
13 | + */ |
|
14 | + public function boot(Dispatcher $dispatcher) |
|
15 | + { |
|
16 | + $dispatcher->mapUsing(function($command) |
|
17 | + { |
|
18 | + return Dispatcher::simpleMapping( |
|
19 | + $command, 'App\Commands', 'App\Handlers\Commands' |
|
20 | + ); |
|
21 | + }); |
|
22 | + } |
|
23 | 23 | |
24 | - /** |
|
25 | - * Register any application services. |
|
26 | - * |
|
27 | - * @return void |
|
28 | - */ |
|
29 | - public function register() |
|
30 | - { |
|
31 | - // |
|
32 | - } |
|
24 | + /** |
|
25 | + * Register any application services. |
|
26 | + * |
|
27 | + * @return void |
|
28 | + */ |
|
29 | + public function register() |
|
30 | + { |
|
31 | + // |
|
32 | + } |
|
33 | 33 | |
34 | 34 | } |
@@ -4,20 +4,20 @@ |
||
4 | 4 | |
5 | 5 | class ConfigServiceProvider extends ServiceProvider { |
6 | 6 | |
7 | - /** |
|
8 | - * Overwrite any vendor / package configuration. |
|
9 | - * |
|
10 | - * This service provider is intended to provide a convenient location for you |
|
11 | - * to overwrite any "vendor" or package configuration that you may want to |
|
12 | - * modify before the application handles the incoming request / command. |
|
13 | - * |
|
14 | - * @return void |
|
15 | - */ |
|
16 | - public function register() |
|
17 | - { |
|
18 | - config([ |
|
19 | - // |
|
20 | - ]); |
|
21 | - } |
|
7 | + /** |
|
8 | + * Overwrite any vendor / package configuration. |
|
9 | + * |
|
10 | + * This service provider is intended to provide a convenient location for you |
|
11 | + * to overwrite any "vendor" or package configuration that you may want to |
|
12 | + * modify before the application handles the incoming request / command. |
|
13 | + * |
|
14 | + * @return void |
|
15 | + */ |
|
16 | + public function register() |
|
17 | + { |
|
18 | + config([ |
|
19 | + // |
|
20 | + ]); |
|
21 | + } |
|
22 | 22 | |
23 | 23 | } |
@@ -5,28 +5,28 @@ |
||
5 | 5 | |
6 | 6 | class EventServiceProvider extends ServiceProvider { |
7 | 7 | |
8 | - /** |
|
9 | - * The event handler mappings for the application. |
|
10 | - * |
|
11 | - * @var array |
|
12 | - */ |
|
13 | - protected $listen = [ |
|
14 | - 'event.name' => [ |
|
15 | - 'EventListener', |
|
16 | - ], |
|
17 | - ]; |
|
8 | + /** |
|
9 | + * The event handler mappings for the application. |
|
10 | + * |
|
11 | + * @var array |
|
12 | + */ |
|
13 | + protected $listen = [ |
|
14 | + 'event.name' => [ |
|
15 | + 'EventListener', |
|
16 | + ], |
|
17 | + ]; |
|
18 | 18 | |
19 | - /** |
|
20 | - * Register any other events for your application. |
|
21 | - * |
|
22 | - * @param \Illuminate\Contracts\Events\Dispatcher $events |
|
23 | - * @return void |
|
24 | - */ |
|
25 | - public function boot(DispatcherContract $events) |
|
26 | - { |
|
27 | - parent::boot($events); |
|
19 | + /** |
|
20 | + * Register any other events for your application. |
|
21 | + * |
|
22 | + * @param \Illuminate\Contracts\Events\Dispatcher $events |
|
23 | + * @return void |
|
24 | + */ |
|
25 | + public function boot(DispatcherContract $events) |
|
26 | + { |
|
27 | + parent::boot($events); |
|
28 | 28 | |
29 | - // |
|
30 | - } |
|
29 | + // |
|
30 | + } |
|
31 | 31 | |
32 | 32 | } |