@@ -21,7 +21,7 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | public function boot() |
| 23 | 23 | { |
| 24 | - $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); |
|
| 24 | + $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); |
|
| 25 | 25 | |
| 26 | 26 | $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'postman'); |
| 27 | 27 | $this->publishes([ |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | public function formColumn() |
| 70 | 70 | { |
| 71 | 71 | $forms = [ |
| 72 | - 'date' => [ |
|
| 72 | + 'date' => [ |
|
| 73 | 73 | 'label' => trans('postman::dashboard.date'), |
| 74 | 74 | 'rule' => [ |
| 75 | 75 | 'required'=> true, 'message'=> 'Please input Activity name', 'trigger'=> 'blur', |
@@ -94,12 +94,12 @@ discard block |
||
| 94 | 94 | 'cancel' => trans('postman::dashboard.form.button.cancel'), |
| 95 | 95 | ], |
| 96 | 96 | 'popup' => [ |
| 97 | - 'question' => trans('postman::dashboard.popup.question'), |
|
| 98 | - 'title' => trans('postman::dashboard.popup.title'), |
|
| 99 | - 'confirmButtonText' => trans('postman::dashboard.popup.confirmButtonText'), |
|
| 100 | - 'cancelButtonText' => trans('postman::dashboard.popup.cancelButtonText'), |
|
| 101 | - 'success.message' => trans('postman::dashboard.popup.success.message'), |
|
| 102 | - 'info.message' => trans('postman::dashboard.popup.info.message'), |
|
| 97 | + 'question' => trans('postman::dashboard.popup.question'), |
|
| 98 | + 'title' => trans('postman::dashboard.popup.title'), |
|
| 99 | + 'confirmButtonText' => trans('postman::dashboard.popup.confirmButtonText'), |
|
| 100 | + 'cancelButtonText' => trans('postman::dashboard.popup.cancelButtonText'), |
|
| 101 | + 'success.message' => trans('postman::dashboard.popup.success.message'), |
|
| 102 | + 'info.message' => trans('postman::dashboard.popup.info.message'), |
|
| 103 | 103 | ], |
| 104 | 104 | ]; |
| 105 | 105 | |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | */ |
| 19 | 19 | public function postEmail(SheduleEmail $tasks) : void |
| 20 | 20 | { |
| 21 | - Mail::raw($tasks->email->text, function ($message) use ($tasks) { |
|
| 21 | + Mail::raw($tasks->email->text, function ($message) use ($tasks) { |
|
| 22 | 22 | $message->subject($tasks->email->theme); |
| 23 | 23 | $message->from(config('mail.from.address')); |
| 24 | 24 | $message->to(config('mail.from.address')); |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | $tasks->email->users->each(function ($value) use ($message) { |
| 27 | 27 | $message->bcc($value->email); |
| 28 | 28 | }); |
| 29 | - }); |
|
| 29 | + }); |
|
| 30 | 30 | |
| 31 | 31 | // if to reached the sender |
| 32 | 32 | if (empty(Mail::failures())) { |
@@ -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 | $mode = FactoryMode::get($value->mode_id); |
| 19 | 19 | $mode->postEmail($value); |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | 'email' => 'Email пользователя', |
| 22 | 22 | 'name' => 'Имя пользователя', |
| 23 | 23 | |
| 24 | - // transformer |
|
| 24 | + // transformer |
|
| 25 | 25 | 'status_action.1' => 'Сделано', |
| 26 | 26 | 'status_action.0' => 'В процессе', |
| 27 | 27 | |