Laravel Macros

Laravel Tip: 5 examples of why you should be using Macros

https://medium.com/@SlyFireFox/laravel-tip-5-examples-of-why-you-should-be-using-macros-90e015d1bce

To cover what a macro is briefly, it’s a way of extending a class’ methods but without using inheritance and instead it works by adding a Closure to a class. This then means that all instances of that class has that newly added method. Any class that has uses the Macroable trait found in the Laravel framework can have macros applied to them.

PHP alkalmazás létrehozása keretrendszer nélkül/ Professional PHP: Building maintainable and secure applications

PHP alkalmazás létrehozása keretrendszer nélkül:
https://github.com/dominicus75/no-framework-tutorial

A small tutorial to show how to create a PHP application without a framework.

https://github.com/PatrickLouys/no-framework-tutorial

Laravel, Gmail sending

https://stackoverflow.com/questions/27721120/laravel-connection-could-not-be-established-with-host-smtp-gmail-com-0

In Laravel project directory, edit config/mail.php and add the following:

‘stream’ => [
‘ssl’ => [
‘allow_self_signed’ => true,
‘verify_peer’ => false,
‘verify_peer_name’ => false,
],
]
It worked for me.

Fyi, my SMTP settings are:

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
MAIL_USERNAME=[Full Gmail Address]
MAIL_PASSWORD=[Google App Password obtained after two step verification on Google Account Page]
MAIL_ENCRYPTION=ssl