Skip to main content

Test Email sending with tinker

 Open Tinker: Open your terminal and navigate to your Laravel project's root directory. Then, run the following command to open Tinker:

php artisan tinker

Mail::raw('Hello World!', function($msg) {$msg->to('developer@gmail.com')->subject('Test Email'); });



Comments

Popular posts from this blog

Interview questions related to Laravel 8 updates- Laravel Interview questions

 Laravel 8 brought several updates and features to the framework. If you are preparing for an interview and expecting questions related to Laravel 8 updates, here are some potential questions: 1. What are the major features introduced in Laravel 8? Laravel Jetstream: A new application scaffolding for Laravel, providing teams with a starting point for building robust applications. Laravel Breeze: A lightweight and minimalistic front-end starter kit. Model Factory Classes: Introduction of factory classes for model factories, allowing for better organization of data seeding logic. Job Batching: A feature that allows you to easily run a batch of jobs and then perform some action when all the jobs have completed. Dynamic Blade Components: The ability to render Blade components dynamically. 2. Explain the improvements made to the Laravel job queue in version 8. Laravel 8 introduced Job Batching, which allows you to group multiple jobs into a batch and perform actions upon the completion ...

Vue Top Interview Questions

 1. Can you explain the Vue Composition API and its benefits? The Vue Composition API is a feature introduced in Vue 3 that revolutionizes the way we write Vue components by allowing us to compose our component logic using functions. Instead of scattering our component logic across various options like data, methods, computed, and watch, the Composition API encourages us to organize our logic into smaller, reusable functions called composition functions. One of the primary features of the Composition API is the setup() function. This function replaces the traditional options like data, methods, and others. Inside the setup() function, we can define reactive state using ref() and reactive() functions, set up lifecycle hooks using functions like onMounted(), and create computed properties and watchers using computed() and watch() functions. One significant benefit of the Composition API is better organization and reusability of code. By breaking our component logic into smaller funct...