Suman Shrestha

Snippets | Suman Shrestha

Code Snippets & Insights

71 articles

Laravel Task Scheduling

Schedule recurring tasks with Laravel's elegant task scheduler

Laravel File Storage and Uploads

Handle file uploads and storage with Laravel's filesystem abstraction

Laravel Collections Mastery

Transform and manipulate data fluently with Laravel's powerful Collection class

Laravel Broadcasting for Real-Time Features

Build real-time applications with Laravel's event broadcasting

Laravel Authorization with Gates and Policies

Control user access with Laravel's authorization features

Laravel Testing Fundamentals

Write effective tests for your Laravel applications with PHPUnit and Pest

Laravel Events and Listeners

Decouple application logic with Laravel's event-driven architecture

Laravel Caching Strategies

Improve application performance with Laravel's flexible caching system

Laravel Form Request Validation

Encapsulate validation logic in dedicated Form Request classes for cleaner controllers

Laravel API Resources for JSON Responses

Transform your Eloquent models into clean JSON API responses with Laravel Resources

Laravel Eloquent Relationships Guide

Define and work with all types of Eloquent relationships in Laravel

Creating and Using Laravel Middleware

Filter HTTP requests with custom middleware in Laravel applications

Laravel Queues and Background Jobs

Process time-consuming tasks asynchronously with Laravel's queue system

Laravel Model Events and Observers

Hook into Eloquent model lifecycle events for automatic actions and data transformations

Understanding Laravel's Service Container

Master dependency injection and binding with Laravel's powerful service container

Loading more articles...

-

Need one on one help with Laravel and its ecosystem?

Talk to me now if you need my help. Click here