- Open Laravel Tinker from the project root folder:
php artisan tinker- Run the Test command:
Mail::raw('Hello World!', function($msg) { $msg->to('destination_email@gmail.com')->subject('Testing SMTP'); });| <?php | |
| namespace App\Enums; | |
| use Exception; | |
| enum MonthsEnum: int | |
| { | |
| case JANUARY = 1; | |
| case FEBRUARY = 2; |
| <?php | |
| namespace Database\Factories; | |
| use App\Enums\DocumentTypesEnum; | |
| use App\Enums\MemberTypesEnum; | |
| use App\Enums\PetTypesEnum; | |
| use App\Services\PetNameService; | |
| use Illuminate\Database\Eloquent\Factories\Factory; | |
| use Illuminate\Support\Arr; |
| <?php | |
| function memoize($target) { | |
| static $memo = new WeakMap; | |
| return new class ($target, $memo) { | |
| function __construct( | |
| protected $target, | |
| protected &$memo, | |
| ) {} |
php artisan tinkerMail::raw('Hello World!', function($msg) { $msg->to('destination_email@gmail.com')->subject('Testing SMTP'); });I hereby claim:
To claim this, I am signing this object:
| <!-- How to allow Number fields to include decimals? | |
| Use the step attribute. By reducing the default step to .01 | |
| you unleash the decimals allocation on Number fields. --> | |
| <input type="number" step=".01" name="test" /> | |
| <!-- Do you need more Decimal places? Add more zeros. | |
| You can include more leading positions by adding more left | |
| zeros. --> | |
| <input type="number" step=".001" name="test" /> |
| /* Chrome, Safari, Edge, Opera */ | |
| input::-webkit-outer-spin-button, | |
| input::-webkit-inner-spin-button { | |
| -webkit-appearance: none; | |
| margin: 0; | |
| } | |
| /* Firefox */ | |
| input[type=number] { | |
| -moz-appearance: textfield; |
| <script setup> | |
| import { ref } from 'vue' | |
| // The variable name should match the ref's name in the template. | |
| const newForm = ref(null) | |
| const submitForm = () => { | |
| // We need the value to access the element. | |
| newForm.value.submit() | |
| } | |
| </script> |
| # This is going to include the new directory in the Global Path of your OS. | |
| # IMPORTANT: The default file name could change depending on the Shell you are using. | |
| # Sample: With zshell, the default filename is .zprofile | |
| export PATH="$PATH:/path/to/new/directory" |
| <?php | |
| // This sample present the same command. But the one executed in 'local' doesn't work if Laravel APP_ENV is set to production. | |
| if(app()->environment('local')) | |
| Artisan::call('tenants:artisan "migrate --database=tenant --seed" -q --tenant=' . $customer->getkey()); | |
| // Is necessary to understand the --force flag is set on the artisanCommand variable and NOT in the global scoped executed command. | |
| // This is because the artisanCommand on the tenants:artisan defines the final artisan command to execute on each tenant. | |
| // For more information related to Artisan Commands Production environments check this [article](https://divinglaravel.com/the-problem-behind-undefined-constant-stdin-when-running-laravel-artisan-command-programmatically) from Mohammed Said. | |
| if(app()->environment('production')) |