akubiczek /
applicake-backend
| 1 | <?php |
||
| 2 | |||
| 3 | namespace App\Mail; |
||
| 4 | |||
| 5 | use App\Message; |
||
|
0 ignored issues
–
show
|
|||
| 6 | use App\MessageTemplate; |
||
|
0 ignored issues
–
show
The type
App\MessageTemplate was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 7 | use Illuminate\Bus\Queueable; |
||
| 8 | use Illuminate\Mail\Mailable; |
||
| 9 | use Illuminate\Queue\SerializesModels; |
||
| 10 | use Illuminate\Support\Facades\View; |
||
| 11 | |||
| 12 | class ForwardCv extends Mailable |
||
| 13 | { |
||
| 14 | // use Queueable, SerializesModels; |
||
| 15 | use Queueable; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var MessageTemplate |
||
| 19 | */ |
||
| 20 | public $messageTemplate; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Create a new message instance. |
||
| 24 | * |
||
| 25 | * @return void |
||
| 26 | */ |
||
| 27 | public function __construct($messageTemplate) |
||
| 28 | { |
||
| 29 | $this->messageTemplate = $messageTemplate; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Build the message. |
||
| 34 | * |
||
| 35 | * @return $this |
||
| 36 | */ |
||
| 37 | public function build() |
||
| 38 | { |
||
| 39 | return $this |
||
| 40 | ->subject($this->messageTemplate->subject) |
||
| 41 | ->attach($this->messageTemplate->attachment) |
||
| 42 | ->text('emails.general_message'); |
||
| 43 | |||
| 44 | // ->subject($this->getSubject()) |
||
| 45 | // ->view('emails.raw_email') |
||
| 46 | // ->attach($this->getCvPath()); |
||
| 47 | } |
||
| 48 | } |
||
| 49 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths