Category : environment-variables

There is no problem on the local server, everything works. Mail’s is can sendable, when I deploy my website to GoDaddy I got this error: Connection could not be established with host smtp.gmail.com :stream_socket_client(): unable to connect to tcp://smtp.gmail.com:587 (Network is unreachable) My .env is; MAIL_MAILER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 [email protected] MAIL_PASSWORD=2021365. MAIL_ENCRYPTION=tls [email protected] MAIL_FROM_NAME="${APP_NAME}" Sourc..

Read more

I am new in programming.I mistakenly changed my env file from production server into the local env file in my Laravel project. I created a new env file, filled the data about DB, made php artisan key:generate, started the commands: php artisan config:clear php artisan route:clear php artisan view:clear php artisan cache:clear composer dump-autoload But ..

Read more

What I want: I want to display a message when the user is redirected back to the form page after a mail is sent. What I am doing Here is the code in my SendEmailController.php: return back()->with(‘success’, ‘Mail Sent !’); Here is my code in my view/index.blade.php: @if ($message = Session::get(‘success’)) <div class="alert alert-success alert-block"> ..

Read more