J José Leiva
Home Projects Portfolio Dashboard Export PDF Log in

Languages

English
64

Latest Updates

Documenting code, one commit at a time.

0

Streamlining Environment Management for Proyecto-FinanzApp.io

Managing environment configurations is a foundational task for any application, especially when transitioning between local development and production environments. Recently, we focused on refining the environment variable handling for Proyecto-FinanzApp.io to ensure a smoother deployment experience.

The Challenge of Environment Configuration

In most web projects, the .env file acts as the bridge between your code and the host environment. Often, developers find themselves juggling

Structuring MVC Patterns in Laravel: Moving Beyond the Basics

When starting a new project, it is easy to let your logic sprawl across files, leaving you with controllers that do too much and views that lack consistency. Recently, while working on the electivo-laravel project, I focused on enforcing a cleaner separation of concerns by standardizing our models, controllers, and views.

The Problem of Monolithic Controllers

In the early stages of development, it is tempting to dump database queries and business logic directly into controller methods.

Building Strong Foundations: Setting Up the Sistema Electivos Project

Starting a new project is like setting the foundation for a skyscraper. Before you can worry about the height of the floors or the glass on the exterior, you have to ensure the concrete is poured correctly and the structure is stable. This is exactly where I started with the 'Sistema Electivos' project.

The Initial Blueprint

When kicking off a new application, the temptation is often to dive straight into feature development—creating routes, building controllers, and styling UI components.

Enhancing Student Visibility in Sistema_electivos

For developers working on academic management systems, visibility into student enrollment is a key requirement for streamlining workflows. In the Sistema_electivos project, we recently tackled the challenge of providing students with a clear, consolidated view of their elective courses directly within their profile page.

The Visibility Challenge

Previously, students had to navigate through multiple menu items to verify their elective registrations.

Building Granular Access Control in Laravel

Managing permissions across multiple administrative layers often leads to a tangled web of conditional logic. Recently, while working on the Sistema_electivos project, we focused on streamlining how elective courses and user enrollments are managed by separating concerns into distinct roles: Students, Administrators, and Super-Admins.

Moving Beyond Global Logic

When building administrative interfaces, the common mistake is to litter controllers with authentication checks.

Implementing Secure Role-Based Access Control in Sistema_electivos

Improving Access Control

In the Sistema_electivos project, we recently focused on strengthening our security posture by implementing a strict role-based access control (RBAC) system. Previously, view access was loosely managed, leading to potential unauthorized visibility of elective data. Additionally, we addressed a data retrieval bug that caused inconsistencies when fetching elective selections for students.

The Challenge: Context-Aware Security

Think of your application like a

Optimizing Modular Architecture in Laravel Applications

Rethinking Application Structure

When working on long-term projects like the Sistema_electivos platform, maintainability often hinges on how effectively you decouple your business logic from the transport layer. As applications scale, scattering logic throughout controllers leads to the dreaded 'fat controller' anti-pattern, making the codebase fragile and difficult to test.

The Power of the Service Layer

Moving core business processes into a Service Layer provides a clear separation

Implementing Robust Role-Based Access Control in Laravel

In the ongoing development of the Sistema_electivos project, our team has shifted focus toward tightening the security of our application infrastructure. Specifically, we have recently implemented dedicated Laravel Policies to handle role-based authorization, ensuring that user actions are restricted based on their designated permissions within the system.

Moving Beyond Simple Checks

Authorization often starts as a set of simple conditionals in your controller logic, but this quickly

Streamlining MVC Architecture in Electivo-Laravel

Introduction

In the electivo-laravel project, we have been focusing on refining the application structure to follow the Model-View-Controller (MVC) pattern more effectively. By decoupling business logic from routing, we ensure the codebase remains maintainable as the project grows.

The MVC Approach

Think of the MVC pattern like a restaurant. The Model is the kitchen staff (data management), the View is the dining room (UI/UX), and the Controller is the waiter (handling requests and