shashikadev.hashnode.devUnderstanding the Difference: Laravel Lazy Loading vs Eager LoadingLazy and Eager loading are different strategies for loading data from the database. They are used to optimize the performance of the Laravel application. Lazy Loading Lazy Loading is a technique in which related data is loaded from the database only ...Feb 15, 2025·2 min read
shashikadev.hashnode.dev1. Classes and Objectes.Classes are a blueprint for creating objects. They define properties(attributes) and methods(functions) that objects of classes will have. Objects are instances of classes. its created using the ‘new’ keyword. A constructor is a special method w...Jul 21, 2024·1 min read
shashikadev.hashnode.devSend an email with a mailable class in laravel.Using a Mailable class in Laravel offers several advantages, making it a better and more organized approach for sending emails. Here are some reasons why using a Mailable class is considered better. Separation of Concerns: Reusability Cleaner and ...Feb 4, 2024·2 min read
shashikadev.hashnode.devEncrypting Laravel (9.x) .env fileWhat is Laravel .env ? In Laravel, the .env file is a configuration file that holds various environment-specific configuration settings for your application. It's a plaintext file where you can define key-value pairs, with each pair representing a co...Jan 21, 2024·1 min read
shashikadev.hashnode.devHow to clear the Laravel cache?Laravel, a popular PHP web application framework, offers powerful caching mechanisms to enhance the performance of your application. However, there are situations where you might need to clear the cache, especially during development or after making ...Dec 26, 2023·3 min read