DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

ใ‚ใจใ‚„ใ™ / a_yasui
ใ‚ใจใ‚„ใ™ / a_yasui

Posted on • Updated on

PHP Fatal error: Uncaught ReflectionException: Class mailer does not exist

ใ‚ˆใใ‚ใ‚‹ใƒใƒžใ‚Šใฉใ“ใ‚ใ€‚ๅคงไฝ“ใฏ Facade ใฎๆ›ธใๅ‡บใ—ใŒๅคฑๆ•—ใ—ใฆใŸใ‚Šใ™ใ‚‹ใฎใŒๅŽŸๅ› ใฃใฝใ„ใ€‚

ไป–ใฎ่€ƒใˆใ‚‰ใ‚Œใ‚‹ใฎใฏใ€classmap ใ‚’ไฝœๆˆๆ™‚ใซๅ…จใ้–ขไฟ‚ใชใ„็ฎ‡ๆ‰€ใงใ‚จใƒฉใƒผใŒๅ‡บใฆใ„ใ‚‹ใŒ App\Exceptions\Handler ใงๅœฐ้“ใชใ‚จใƒฉใƒผใƒกใƒผใƒซ้€š็Ÿฅใ‚’ใ—ใฆใ‚‹ใฎใงใ€ Mail:: ใ‚’ไฝฟใฃใฆใชใ„๏ผŸใจใ‹ใใ“ใ‚‰ใธใ‚“ใ€‚

็ขบ่ช็ฎ‡ๆ‰€ ใใฎ1 -- check point 1

file : app/Exceptions/Handler.php

If it send a email in `report' method, You do comment out it.

The Upgrading work and some error catch the report when the email facade does not compiling it.

ใ‚„ใฃใฆใฟใ‚‹ใ“ใจ ใใฎ1 -- try 1

config/app.php ใฎ providers ใซ Illuminate\Mail\MailServiceProvider::class ใŒๆŠœใ‘ใฆใ„ใชใ„ใ‹็ขบ่ช

You check the Illuminate\Mail\MailServiceProvider::class in the providers at config/app.php.

ใ‚„ใฃใฆใฟใ‚‹ใ“ใจ ใใฎ2 -- try 2

composer dumpautoload

ใ‚„ใฃใฆใฟใ‚‹ใ“ใจ ใใฎ3 -- try 3

`

rm -rf vendor && composer install
`

ใ‚„ใฃใฆใฟใ‚‹ใ“ใจ ใใฎ4 -- try 4

If exists bootstrap/cache/compiled.php, delete it.

`

rm -f bootstrap/cache/compiled.php
`

ๅ‚่€ƒ

Top comments (0)

Timeless DEV post...

Git Concepts I Wish I Knew Years Ago

The most used technology by developers is not Javascript.

It's not Python or HTML.

It hardly even gets mentioned in interviews or listed as a pre-requisite for jobs.

I'm talking about Git and version control of course.

One does not simply learn git