Laravel 5.7 HTML in Password Reset Email - laravel

There is HTML being displayed within the password reset email. I'm running default email notifications packaged with Laravel. Unsure why this is happening.
I would expect it to look more like this:
Any help tracking this down would be appreciated.

Problem solved. I didn't realize I had to publish the laravel-notifications vendor files. Once I did this, the email worked as expected.
php artisan vendor:publish --tag=laravel-notifications

Related

Laravel 5.1 - Some pages are not found on production serveur - "Page you are looking for could not be found"

I have a problem with some "routes" in my old Laravel 5.1.46 project.
When I try to access to some routes, like admin/exercices/creer or admin/exercices/1928, I have this: "Sorry, the page you are looking for could not be found.".
I can access to thoses pages when I work on the test or local serveur. But not on the production serveur.
Other routes like admin/missions/creer are working properly.
I tried php artisan route:list to compare the routes on each serveur: it's the same everywhere.
I also tried php artisan route:cache and php artisan route:clear. Nothing changed.
I can remember we changed the routes path (for example: "admin/modules/creer" became "admin/exercices/creer"). I think we did it manually, directly in the routes.php file. But it waas a long time ago and since then, it already worked properly. So I don't think it comes from that, but Idk.
I'm also not good at sysadmin, so maybe it's more about the config of the server than code and laravel... In this case, any idea here does it come from? I have no clue, and I might need help.
Thanks a lot for reading! And let me know if you have even a tiny idea!

Laravel 5 slow refresh waiting for blocked storage access requests from trackers

I've moved a laravel app form a domain to another. All works well but I noticed, after clicked on subitting a button, that it spend 20seconds to refresh the paige. During this the system is waiting for an external components (addthis.com, google ads etc..), end when solved the process in console I read the "Blocked: Storage access requests from trackers" message.
I've setup session.php to 'same_site' => 'lax' (it was null..) but nothing happends.
Do you have some idea?
How to include safe url list as walk-artoud it ?
Thanks
Hi after this change you should clear the cache of config laravel
on your console you write :
php artisan config:clear
to permit accept the changes and then clear the cache of your application with
php artisan cache:clear
and see if this works.
I was tried with php artisan optimize:clear with no results, but as you suggest it works right, thank you a lot!
Have I repeat this periodically or only if I update session.php?

Laravel recaptcha not rendering

I am using this package to add recaptcha in my laravel app, and when I add #captcha to my view it just print as is without rendering any captcha or badge.
Did anyone had the same issue with this package? how to fix it?
in .env you have this?:
INVISIBLE_RECAPTCHA_SITEKEY={siteKey}
INVISIBLE_RECAPTCHA_SECRETKEY={secretKey}
and make sure siteKey and secretKey is right.
after you add this to .env try run:
php artisan config:clear
Do you see any error in console?
Solved
I've changed my package to this one which is based on my question package and also supports laravel 8 now everything works fine.

How do I change laravel mail body?

I used laravel default Auth to learn laravel by using php artisan make:auth. Where I also used default mailing of laravel.
I want to know about mailing process. I able to send password reset mail. But I want to change this default mail format. Where I can change this or how?
You can modify your laravel mail body view from:
vendor/laravel/framework/src/Illuminate/Notifications/resources/views/email.blade.php
But if you want to change some text information then see below page:
vendor/laravel/framework/src/Illuminate/Auth/Notifications/ResetPassword.php

Laravel 5.2 reCaptcha fails after succeeds

So, I have placed the reCaptcha in my login form. I click on "im not a robot" and click on the right images and it says it succeeded, but when I submit the form it returns me the message of "The Captcha field is not correct." and it also thrown and exception saying:
'Illuminate\Foundation\Validation\ValidationException' with message
'The given data failed to pass validation.'
I am using "greggilbert/recaptcha" in my Laravel 5.2 project. I have set my keys and everything is working great in production and in other localhost's but not in mine.
My team and I work in the same git repository and it works for everyone but not for me.
I have re-installed the plugin, also the whole composer (by deleting vendor and then composer install).
I have cleared the configuration with php artisan config:clear and I've done the composer dump-autoload and have re-publish the ServiceProvider with php artisan vendor:publish --provider="Greggilbert\Recaptcha\RecaptchaServiceProvider"
Does somebody have any idea on how to fix this? Please!
Thank you a lot for reading this! Happy coding!

Resources