@@ -32,8 +32,8 @@ discard block |
||
32 | 32 | ]); |
33 | 33 | $this->loadViews(); |
34 | 34 | |
35 | - Request::macro('datePostman', function (Request $request) { |
|
36 | - $request-> date = Carbon::parse($request->date)->toDateTimeString(); |
|
35 | + Request::macro('datePostman', function(Request $request) { |
|
36 | + $request-> date = Carbon::parse($request->date)->toDateTimeString(); |
|
37 | 37 | }); |
38 | 38 | $this->mergeConfigFrom(__DIR__.'/../config/postman.php', 'postman'); |
39 | 39 | $this->publishesAll(); |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | 'prefix' => 'postman', |
74 | 74 | 'namespace' => 'agoalofalife\postman\Http\Controllers', |
75 | 75 | 'middleware' => 'web', |
76 | - ], function () { |
|
76 | + ], function() { |
|
77 | 77 | $this->loadRoutesFrom(__DIR__.'/../routes/web.php'); |
78 | 78 | }); |
79 | 79 | } |
@@ -27,7 +27,7 @@ |
||
27 | 27 | */ |
28 | 28 | public function handle() : void |
29 | 29 | { |
30 | - $this->call('vendor:publish', ['--tag' => 'postman-migration']); |
|
30 | + $this->call('vendor:publish', [ '--tag' => 'postman-migration' ]); |
|
31 | 31 | $this->call('migrate'); |
32 | 32 | $this->call('postman:seed'); |
33 | 33 | } |
@@ -13,10 +13,10 @@ |
||
13 | 13 | */ |
14 | 14 | public function postEmail(SheduleEmail $tasks) |
15 | 15 | { |
16 | - Mail::raw($tasks->email->text, function ($message) use ($tasks) { |
|
16 | + Mail::raw($tasks->email->text, function($message) use ($tasks) { |
|
17 | 17 | $message->subject($tasks->email->theme); |
18 | 18 | $message->from(config('mail.from.address')); |
19 | - $message->to($tasks->email->users->map(function($value){ return $value->email;})->toArray()); |
|
19 | + $message->to($tasks->email->users->map(function($value) { return $value->email; })->toArray()); |
|
20 | 20 | }); |
21 | 21 | |
22 | 22 | // if to reached the sender |
@@ -13,7 +13,7 @@ |
||
13 | 13 | { |
14 | 14 | public static function parse() : void |
15 | 15 | { |
16 | - SheduleEmail::whereRaw('CAST(date AS Datetime) <= ? AND status_action = ?', [Carbon::now(), 0])->get() |
|
16 | + SheduleEmail::whereRaw('CAST(date AS Datetime) <= ? AND status_action = ?', [Carbon::now(), 0])->get() |
|
17 | 17 | ->each(function ($value) { |
18 | 18 | $value->mode->owner->postEmail($value); |
19 | 19 | }); |
@@ -13,8 +13,8 @@ |
||
13 | 13 | { |
14 | 14 | public static function parse() : void |
15 | 15 | { |
16 | - SheduleEmail::whereRaw('CAST(date AS Datetime) <= ? AND status_action = ?', [Carbon::now(), 0])->get() |
|
17 | - ->each(function ($value) { |
|
16 | + SheduleEmail::whereRaw('CAST(date AS Datetime) <= ? AND status_action = ?', [ Carbon::now(), 0 ])->get() |
|
17 | + ->each(function($value) { |
|
18 | 18 | $value->mode->owner->postEmail($value); |
19 | 19 | }); |
20 | 20 | } |
@@ -7,7 +7,7 @@ |
||
7 | 7 | |
8 | 8 | class ModePostEmail extends Model |
9 | 9 | { |
10 | - protected $fillable = ['name', 'description', 'owner']; |
|
10 | + protected $fillable = [ 'name', 'description', 'owner' ]; |
|
11 | 11 | |
12 | 12 | public function getOwnerAttribute(string $value) : Mode |
13 | 13 | { |