Programming

Blog, Programming

MODAL DELETE IN LARAVEL

MODAL DELETE IN LARAVEL Hello Guys! In this article, we’ll demonstrate how to implement a delete modal in Laravel. Before deleting a record, a modal will appear to confirm or cancel the action. Let’s get started! This same content is also available in video format. You can watch it here 👇🏽 and the modal code […]

Blog, Programming

MODAL EDIT IN LARAVEL (CRUD)

Hello guys! In this tutorial, I will teach you how to create a modal for user edition. In this example, we will use a simple user edition form. Previously, we used a separate page with a user edition form. However, this page will no longer be used. Now, when you click the “New” button, a

Programming

Laravel 11 API with PostgreSQL: Quick Guide

Introduction In this article you will learn about, Create Laravel 11 API with PostgreSQL. Laravel is a powerful PHP framework that simplifies web application development. In this guide, we will learn how to create a Laravel 11 API and connect it to a PostgreSQL database. We will cover installation, configuration, and implementing CRUD operations step by

Programming

Real-World OOP Principles in Laravel: A Practical Guide

Object-oriented programming (OOP) is a core concept in modern development. However, many examples use generic cases like “book,” “animal,” or “car,” which often feel disconnected from real-world backend applications. To bridge this gap, this guide will explore how to apply OOP principles in Laravel using practical and maintainable approaches. 1. Understanding the Core OOP Concepts

Programming

Domain-Based Laravel Project Structure for Scalability

Domain-Based Laravel Project Structure In this article you will learn about, Domain-Based Laravel Project Structure. As Laravel projects grow, maintaining a clear structure becomes critical. Traditional organization (controllers and models in separate folders) can lead to spaghetti code in complex systems. In this guide, we’ll explore domain-based organization—a professional strategy adopted by companies like Spotify and

Programming

Laravel 11 Enum Usage Guide

Master Enums in Laravel 11: Strategies for Safer and Cleaner Code In this article you will learn about, Laravel 11 Enum Usage Enums (enumerations) revolutionized constant management in PHP 8.1+, and in Laravel 11, they gain superpowers with native integrations. This hands-on guide demonstrates how to implement them for managing states, roles, and complex workflows—with

Programming

Laravel 11 Multiple File Upload

Implementing Multiple File Uploads in Laravel 11: A Complete Guide to Secure Storage In this article you will learn about, Laravel 11 Multiple File Upload. Handling multiple file uploads is a critical feature for modern applications, from document management systems to media galleries. With Laravel 11, you can implement this functionality efficiently while ensuring security and

Programming

Laravel 11 Generate PDF File using DomPDF Example

Integrating DomPDF in Laravel 11: A Complete Guide to PDF Generation In this article you will learn about, Laravel 11 Generate PDF using DomPDF. Generating PDF files is a common requirement for web applications, whether for reports, invoices, or custom documents. With Laravel 11, this process becomes even more efficient thanks to seamless integration with the DomPDF

Programming

Testing Static Methods in Laravel: Mockery vs Container

Testing Static Methods in Laravel While static methods are convenient for quick calls, they often become obstacles in testing environments. Ideally, static factories should be avoided due to the tight coupling they create. However, refactoring legacy code isn’t always feasible. In this guide, we’ll explore two strategies to tackle this problem: Mockery and the Laravel Container, complete with practical examples

Programming

5 Essential Laravel Features for Writing Clean and Efficient Code

In this article we will talk about Laravel Features for Efficient Code Laravel is a powerful framework that provides developers with numerous features to create clean, maintainable, and compact code. These features help reduce redundancy, improve readability, and enhance productivity. In this article, we will explore five Laravel features that can transform your coding practices

Rolar para cima