Tags: laravel |
-
From Arrays to Collections: Building a Laravel-Style Wrapper in PHP
Transform PHP arrays into powerful collections with this step-by-step guide. Learn to build a Laravel-inspired Collection class with method chaining and advanced array manipulation.
-
How to Create a Laravel Command to Display Columns of a Database Table or Model
Learn how to create a custom Laravel Artisan command to list all columns from a database table or model, including an option to display column types. Perfect for debugging and database inspection!
-
Understanding Laravel Facades: A Deep Dive
Learn everything about Laravel facades, how they work, when to use them, and best practices for creating your own custom facades. Enhance your Laravel skills with this detailed guide.
-
Mastering Laravel Collections: Replace If-Else Blocks with Fluent Data Processing
Learn how to use Laravel Collections to simplify your code by reducing if-else blocks and processing data fluently. Master the art of writing clean, maintainable PHP with real-world examples and tips!
-
Make Global Functions Available in Laravel and Symfony with Composer Autoloading
Learn how to use Composer autoloading to create and manage global helper functions in PHP applications like Laravel and Symfony. Boost code reusability with practical examples and a step-by-step guide to setting up a helpers.php file.
-
Using Laravel's terminate Method: Understanding Configuration and Testing
Learn how to use Laravel's `terminate` method in middleware to perform post-response tasks like logging, sending analytics, or background operations. This guide covers configuration, web server requirements, and testing.
-
10 Essential Design Patterns Every Laravel Developer Should Know
Learn about 10 essential design patterns every Laravel developer should know, including Factory, Builder, Observer, Singleton, and more. Discover how these patterns enhance your Laravel applications with practical examples and use cases.
-
Understanding XSS and Preventing It in Laravel
Learn about Cross-Site Scripting (XSS) attacks and how to prevent them in Laravel. This guide covers XSS types, Laravel's built-in protection mechanisms, and best practices to secure your application.
-
Integrating PHPWord with a Laravel Project
Learn how to integrate PHPWord with a Laravel project to generate Word documents programmatically. This guide covers installation, creating service classes, generating documents, and building a user-friendly interface for document generation.
-
Enhancing Default Contextual Information in Laravel Logs
Learn how to enhance Laravel's default logging system by adding contextual information like the full URL, authenticated user, and request data. Discover how to create a custom log formatter for more informative and useful logs.
Tags:
API (2)
artisan (1)
bash (3)
best practices (1)
collections (1)
composer (2)
configuration (1)
database (2)
debugging (1)
design patterns (2)
javascript (4)
laravel (24)
logging (3)
mail (1)
misc (1)
packages (2)
performance (2)
php (7)
react (1)
recaptcha (1)
s3 (1)
security (10)
shell (3)
ssh (2)
symfony (4)
testing (2)
tools (3)