<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ishara Dabarera on Medium]]></title>
        <description><![CDATA[Stories by Ishara Dabarera on Medium]]></description>
        <link>https://medium.com/@isharaecc1998?source=rss-311588f01c68------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*S_z5C7CPSfBPKPd1TkC6Cg.jpeg</url>
            <title>Stories by Ishara Dabarera on Medium</title>
            <link>https://medium.com/@isharaecc1998?source=rss-311588f01c68------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 03:16:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@isharaecc1998/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How Client-Server Architecture Powers Containers]]></title>
            <link>https://medium.com/@isharaecc1998/how-client-server-architecture-powers-containers-6c4ba1a458be?source=rss-311588f01c68------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c4ba1a458be</guid>
            <dc:creator><![CDATA[Ishara Dabarera]]></dc:creator>
            <pubDate>Sun, 24 Aug 2025 05:06:51 GMT</pubDate>
            <atom:updated>2025-08-24T05:06:51.569Z</atom:updated>
            <content:encoded><![CDATA[<p>Docker uses a client-server architecture, where the Docker Client communicates with the Docker Daemon through a REST API over a Unix socket or network. The daemon handles container management and can interact with other daemons as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n-UgOK5OLdMSVdNHdA4tNQ.png" /></figure><h3><strong>Key Components of Docker Architecture</strong></h3><p><strong>Docker Client</strong><br> The main job of the Docker Client is to provide an interface for developers. It pulls images from a Docker Registry and runs them on the Docker Host. You interact with Docker primarily through the CLI or REST API.</p><p><strong>Docker Host</strong><br> The Docker Host is responsible for running one or more containers. It includes the Docker Daemon, containers, and images.</p><p><strong>Docker Registry</strong><br> The Docker Registry stores Docker images. Public registries like Docker Hub allow anyone to share and download container images, while private registries are available for organizations.</p><h3><strong>Docker Objects</strong></h3><p><strong>Containers</strong><br> Containers are the running instances created from Docker Images. These are lightweight, isolated environments where your application lives. You can start, stop, delete, or restart containers using the CLI or Docker API.</p><p><strong>Images</strong><br> Images are read-only templates that contain instructions for creating a container. They package applications and their dependencies for easy shipping and deployment.</p><p><strong>Docker Storage</strong></p><p>Containers store data in a writable layer, but they need a storage driver. Docker provides several storage options:</p><ul><li><strong>Data Volumes</strong> — Mounted directly to the container’s filesystem.</li><li><strong>Volume Containers</strong> — Simplifies sharing and backing up data between containers.</li><li><strong>Directory Mounts</strong> — Mounts a host directory as a volume.</li><li><strong>Storage Plugins</strong> — Used to maintain container state when integrating with external storage systems like Amazon EBS.</li></ul><p><strong>Docker Networking</strong></p><p>Docker provides complete isolation for docker containers. It requires very less OS instances to run the workload. There is several networking type</p><ul><li><strong>Bridge (Default)</strong> — Connects multiple containers on the same host.</li><li><strong>Host</strong> — Shares the host’s network stack with the container, eliminating isolation.</li><li><strong>Overlay</strong> — Enables communication between containers across multiple hosts (used in Swarm mode).</li><li><strong>None</strong> — Disables networking entirely.</li><li><strong>Macvlan</strong> — Assigns a unique MAC address to containers, making them behave like physical devices on the network.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c4ba1a458be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Can We Run Applications Without Worrying About the Environment?]]></title>
            <link>https://medium.com/@isharaecc1998/how-can-we-run-applications-without-worrying-about-the-environment-62d1fa8ff658?source=rss-311588f01c68------2</link>
            <guid isPermaLink="false">https://medium.com/p/62d1fa8ff658</guid>
            <dc:creator><![CDATA[Ishara Dabarera]]></dc:creator>
            <pubDate>Sat, 16 Aug 2025 11:40:09 GMT</pubDate>
            <atom:updated>2025-08-16T11:40:09.435Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever had the experience when your code works perfectly on your device but suddenly crashes when you move it to another machine or server? This frequently occurs because apps require the proper environment (operating system, libraries, and settings) to run. Even a minor difference between your machine and the server can result in break the operations. Developers have faced with this issue, and docker container comes as the solution for that.</p><p><strong>What is Docker?</strong></p><p>Docker is an open-source containerization platform. It uses a client-server architecture and makes the process of developing, packaging, and deploying applications much easier.</p><p>With Docker, you can put your application and everything it needs (libraries, dependencies, settings) into a container. This container can run on any machine where Docker is installed, no matter what operating system it uses.</p><p>Docker is made up of five key components:</p><p><strong>1. Docker Engine</strong></p><p>This is the core part of Docker. It has three main pieces:</p><ul><li>Server (Docker Daemon): Responsibly for creating and managing containers, images, networks, and volumes.</li><li>REST API: Acts as a bridge between the client and the server.</li><li>Client (CLI): The command line interface where developers run Docker commands to interact with the server.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*W_4vMQtqyjggegs_" /></figure><p><strong>2. Docker Image</strong></p><p>A Docker Image is read only template. It is containing multiple layers for execute code in the container. It defines what software is inside the container and how the container should run.</p><p><strong>3. Docker Hub</strong></p><p>Docker Hub is a cloud based repository where developers can store, share, and download Docker images.</p><p><strong>4. Dockerfile</strong></p><p>A Dockerfile is a text document with step-by-step instructions on how to build a Docker image.It uses a special domain-specific language (DSL). The steps in a Dockerfile must be written in order because the Docker daemon executes them one by one, from top to bottom.</p><p><strong>5. Docker Registry</strong></p><p>The Docker Registry is a storage distribution system for Docker images. Developers can keep images public or private modes.</p><p><strong>Advantages of Using Docker</strong></p><p>It’s more portable because it can run anywhere like on laptops, servers, or in the cloud. Faster because don’t need to reboot a full operating system.<strong> </strong>Sharing OS and hardware, so they use fewer resources compared to virtual machines. Makes it easy for teams to share and run the same setup. Uses less memory and storage. Works smoothly with multi cloud and hybrid cloud environments.</p><p><strong>Conclusion</strong></p><p>Docker takes away the biggest headache for developers <strong>“It works on my machine, but not on the server.”</strong> By packaging apps and their dependencies into containers, Docker ensures developers software runs the same everywhere. It’s lightweight, fast, and reliable. Docker makes the perfect companion for modern development.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62d1fa8ff658" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Multi-Step Wizard Form in FilamentPHP for an Automated Vehicle Monitoring System]]></title>
            <link>https://medium.com/@isharaecc1998/building-a-multi-step-wizard-form-in-filamentphp-for-an-automated-vehicle-monitoring-system-2a7530ce04aa?source=rss-311588f01c68------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a7530ce04aa</guid>
            <dc:creator><![CDATA[Ishara Dabarera]]></dc:creator>
            <pubDate>Thu, 08 May 2025 06:34:13 GMT</pubDate>
            <atom:updated>2025-05-08T06:34:13.875Z</atom:updated>
            <content:encoded><![CDATA[<p>In complex systems such as an Automated Vehicle Monitoring System, gathering all the data required especially when dealing with several entities of data like users, guests, and vehicles in a single format is user overwhelming. Multi-step wizard forms are a rescue there. In this entry, I will demonstrate how I used FilamentPHP’s Wizard Form to achieve simple, intuitive multiple data entry steps, simplify user experience, and improve data accuracy.</p><p><strong>Guest Registration Workflow</strong></p><p>Guest registration is a critical function in the AVMS. Guests are individuals who temporarily access the system and usually require rapid, yet thorough registration. A multi-step wizard form has been implemented to support this.</p><p>Step 1: Personal Information</p><p>The form starts by collecting essential personal data:</p><ul><li>Full Name</li><li>NIC (National Identity Card) Number</li><li>Phone Number</li><li>Address</li></ul><p>Validations Applied</p><ul><li>Unique NIC &amp; Phone Number: The system checks if the NIC or phone number is already registered, either as a user or a guest. This prevents identity duplication across the system.</li><li>NIC Format: NIC input is validated against a regular expression to ensure the format matches either the new 12-digit NIC or the old 9-digit format with ‘V’ at the end (e.g., 123456789V or 200012345678).</li><li>Phone Format: Ensures 10-digit numeric entries beginning with 0.</li></ul><p>These validations not only protect data integrity but also enhance the reliability of downstream processes, like visitor tracking and reporting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Nm6JCxsRKYCnxnZYQuub7A.png" /><figcaption>New Guest Information Form</figcaption></figure><p>Step 2: Vehicle Details Collection</p><p>Depending on whether the guest is new or existing, the form intelligently adapts:</p><p>For New Guests</p><p>A single vehicle entry form appears, requesting:</p><ul><li>Vehicle Type (Car, Motorcycle, Van, etc.)</li><li>Vehicle Number Plate</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*_3LJJ2X5p3zePK2fEpdtEw.png" /><figcaption>Vehicle Information Form For New Guest</figcaption></figure><p>For Existing Guests (Edit Mode)</p><p>The form uses a Repeater field, allowing multiple vehicles to be edited, added, or removed on the fly. This ensures the AVMS remains flexible and scalable to support guests with more than one vehicle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Oz1K4hMQktsWwSuDZ5alQg.png" /><figcaption>Vehicle Information Form For Existing Guest</figcaption></figure><p>Validations Applied</p><ul><li>Vehicle Type: is chosen from a pre-defined Enum, ensuring consistency.</li><li>Vehicle Number: follows a validated format (e.g., WP CAB 5678) using regex patterns for local compliance.</li></ul><p>By segmenting guest and vehicle data into clear steps, the AVMS ensures that entries are accurate, minimal, and user-friendly, reducing form fatigue and entry errors.</p><p><strong>Custom User Registration with Role-Aware Logic</strong></p><p>In AVMS, users are not one-size-fits-all. They could be students, staff, or administrators, and each role requires different fields and validations. The Filament Wizard form handles this complexity seamlessly by breaking it down into steps.</p><p>Step 1: Profile Details</p><ul><li>Name</li><li>Role Selection: The user picks between “Student” or “Staff”.</li><li>NIC Number: Similar validations as the guest form.</li><li>Conditional Fields:</li><li>Students provide a University ID.</li><li>Staff provide an Occupation field.</li></ul><p>The form dynamically shows or hides these fields based on the selected role, improving usability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*29M7CC8H-C9RmCx178BjXQ.png" /><figcaption>Students Profile Registration Form</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*peA6Kx1dn9xaHoYT2EaiQA.png" /><figcaption>Staff Profile Registration Form</figcaption></figure><p>Step 2: Contact Information</p><ul><li>Address: Required with formatting and length validations</li><li>Phone Number: Similar validations as the guest form.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*V2H6OLraK1jm9Fayv4J3QA.png" /><figcaption>User Contact Information Registration Form</figcaption></figure><p>Step 3: Account Setup</p><ul><li>Email: Must be unique and valid format</li><li>Password &amp; Confirmation: Passwords are validated for complexity, ensuring at least one letter, number, and symbol.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*vI7pnz1WrqHLatBvv-SsVg.png" /><figcaption>User Account Information Registration Form</figcaption></figure><p>Upon successful form submission:</p><ul><li>A new user record is created.</li><li>The relevant role (vehicle_owner) is assigned automatically.</li><li>Associated Student or Staff records are created in their respective tables and linked via foreign keys.</li></ul><p>This logic ensures that every user is fully integrated into the system with the right permissions and profile associations.</p><p><strong>Benefits of Using Filament Wizard Forms in AVMS</strong></p><ul><li>Breaking down long forms into smaller, manageable steps significantly improves the overall user experience. By guiding users through the form in a step-by-step manner, it reduces cognitive overload, making the process feel less overwhelming. This structured approach encourages users to complete the form with greater accuracy and increases the likelihood of successful submission, ultimately enhancing form completion rates.</li><li>Dynamically displaying fields based on the user’s context — such as showing a student ID field for students and an occupation field for staff — ensures that only relevant information is requested. This contextual approach not only streamlines the user experience but also helps prevent the entry of irrelevant or empty data, leading to more accurate and meaningful form submissions.</li><li>Real-time field validations play a crucial role in ensuring data integrity by immediately preventing duplicate entries and format mismatches as users fill out forms. Additionally, implementing custom validation rules tailored to specific requirements enhances both the security and accuracy of the collected information, providing a more robust and user-friendly experience.</li><li>Filament’s reactive components make it easy to customize and extend forms, allowing developers to adapt the interface to specific project needs. This flexibility enables administrators to quickly add or modify form steps as the system evolves, ensuring that the form structure remains aligned with changing requirements and user expectations.</li><li>Repeater fields and conditional forms provide the flexibility needed to scale the system for more complex use cases. These features allow the system to efficiently handle scenarios such as multi-vehicle management, and guest history tracking, ensuring a seamless user experience even as the application grows in complexity.</li></ul><p><strong>Conclusion</strong></p><p>The integration of Filament Wizard Forms in the AVMS system is more than just a UI enhancement; it’s a strategic design decision that improves data quality, user satisfaction, and administrative efficiency. Whether managing guests with multiple vehicles or staff members with dynamic roles, the system provides a seamless, intelligent registration process that scales with the organization’s needs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a7530ce04aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Crafting a Dynamic ER Diagram for Automated Campus Security Vehicle Management System]]></title>
            <link>https://medium.com/@isharaecc1998/crafting-a-dynamic-er-diagram-for-automated-campus-security-vehicle-management-system-a1c80547b7a6?source=rss-311588f01c68------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1c80547b7a6</guid>
            <dc:creator><![CDATA[Ishara Dabarera]]></dc:creator>
            <pubDate>Thu, 06 Feb 2025 15:10:56 GMT</pubDate>
            <atom:updated>2025-02-06T15:10:56.958Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong></p><p>Efficient vehicle management is essential for ensuring campus safety and streamlining vehicle-related activities within a university environment. The traditional manual system, reliant on physical logbooks, often leads to inaccuracies, inefficiencies, and security vulnerabilities. To overcome these challenges, we propose an automated Campus Security Vehicle Management System designed to enhance security measures and optimize operations.</p><p>The most important activity involved in this project is the design of a well-structured ER Diagram. The ER diagram acts like a blueprint to the underlying database, which illustrates data relationships with a view to making the system scalable and efficient. With explicit definitions of entities such as users, vehicles, roles, and permissions, the system will be set to adapt to the present and future with ease.</p><p>This project is powered by Filament, an advanced tool developed on Laravel and used for permissions and access control. Filament offers a friendly user interface with dynamic role-based access management, along with its customizability, which can be very important in developing systems that are secure and efficient. The roles will include Admin, Security Personnel, and Vehicle Owners, whose permissions are granted by Filament.</p><p>A sturdy ER diagram and permission management by Filament form the bedrock of a novel approach to heighten campus security and operational efficiency in the Campus Security Vehicle Management System.</p><p><strong>Objectives</strong></p><p>The ER Diagram align the basis for a robust database of the Campus Security Vehicle Management System. The design of the ER diagram shall be specifically aimed at assisting in the following aspects</p><p><em>Clearly describe the relationship of entities such as User, Vehicle, Role, Permission, etc.</em></p><p><em>All data communications shall be based on logical building so as to support each and every activity of the system.</em></p><p><em>Develop a database schema design that can support scaling in the future, to accommodate other users’ roles or more features even, or integration.</em></p><p><em>Balance Normalization and performance for data processing efficiency.</em></p><p><em>Model roles such as Admin, Security Personnel, Vehicle Owners, their permissions using appropriate relational mappings</em></p><p><em>Prepare the model for dynamic permission management with libraries like Filament.</em></p><p><em>Establish the relationship of primary and foreign keys, which helps to avoid data duplication or inconsistency.</em></p><p><em>Enforce validation for maintaining quality through database design.</em></p><p><em>Provide appropriate schema for querying efficiently for real-time operations.</em></p><p><em>Avoid data redundancy and optimize relationships to increase the speed of data retrieval.</em></p><p><em>Align the ER diagram according to the functional requirements of the system, which involves tracking vehicle access logs, managing user roles, and permission granting.</em></p><p><em>Ensure that the design supports automation, reducing manual intervention in security operations.</em></p><p><em>Provide a visual guide to developers for easier implementation of the database structure at the backend.</em></p><p><em>Provide a reference for maintaining and upgrading the system over time.</em></p><p>Thus, these goals provide the basis for the ER diagram to be the cornerstone of a technically excellent and practically usable automated Campus Security Vehicle Management System.</p><p><strong>Overview of the Diagram</strong></p><p><strong>Key Entities</strong></p><p>users:</p><p><em>Represents individuals who interact with the system.</em></p><p><em>Attributes: full_name, email, NIC, phone_number, and password.</em></p><p><em>Users can have different roles, such as Admins, Security Personnel, or Vehicle Owners, which define their permissions within the system.</em></p><p><em>Relationships: Users are assigned roles via the </em><strong><em>role_users</em></strong><em> table, forming a many-to-many relationship, connected to vehicles table with using MorphOne in Polymorphic relationship.</em></p><p><em>There are two child class intergrate with users table called students and staff</em></p><p>vehicles:</p><p><em>Tracks the details of all entry/exit vehicles to the university.</em></p><p><em>Attributes: type, vehicle_number, owner_model and owner_id</em></p><p><em>Relationships: Vehicles are associated with two parents table called users and guests, forming a MorphOne in Polymorphic relationship, connected to access logs for tracking entries and exists with using one-to-many relationship.</em></p><p>roles:</p><p><em>Defines the roles users can have in the system, such as </em><strong><em>Admin</em></strong><em>, </em><strong><em>Security Personnel</em></strong><em>, and </em><strong><em>Vehicle Owners</em></strong><em>.</em></p><p><em>Attributes: role</em></p><p><em>Relationships: Roles are assigned to users via the </em><strong><em>role_users</em></strong><em> table, forming a many-to-many relationship, Roles are assigned to permissions via the </em><strong><em>permission_roles</em></strong><em> table, forming a many-to-many relationship.</em></p><p>permissions:</p><p><em>Specifies actions users can perform, such as managing vehicles, viewing logs, or assigning roles.</em></p><p><em>Attribute: permission</em></p><p><em>Relationships: Permissions are linked to roles via the </em><strong><em>permission_roles</em></strong><em> table, forming a many-to-many relationship.</em></p><p>guests:</p><p><em>Tracks visitors and their vehicle details.</em></p><p><em>Attributes: full_name, NIC, address, phone_number</em></p><p><em>Relationships: connect with vehicle table with using MorphOne in Polymorphic relationship.</em></p><p><em>There are one child table called reasons.</em></p><p>access_logs:</p><p><em>Records vehicle movements in and out of the campus.</em></p><p><em>Attributes: status, time</em></p><p><em>Relationships: Connected to vehicles via a one-to-many relationship.</em></p><p><strong>Child Tables and Their Roles</strong></p><p>students:</p><p><em>Represents users who are university students.</em></p><p><em>Attributes: university_registrstion_no</em></p><p><em>Role: Allows distinguishing students from other user types.</em></p><p>staff:</p><p><em>Represents university staff members.</em></p><p><em>Attributes: occupation</em></p><p><em>Role: Differentiates staff members from other user types.</em></p><p>role_users (Join Table):</p><p><em>Connects </em><strong><em>Users</em></strong><em> and </em><strong><em>Roles</em></strong><em>, enabling a many-to-many relationship.</em></p><p><em>Attributes: user_id, role_id</em></p><p><em>Role: Assigns one or multiple roles to each user.</em></p><p>permission_roles (Join Table):</p><p><em>Links </em><strong><em>Roles</em></strong><em> and </em><strong><em>Permissions</em></strong><em>, defining what each role can do.</em></p><p><em>Attribute: role_id, permission_id</em></p><p><em>Role: Ensures granular permission management for scalability.</em></p><p>Reasons:</p><p><em>Represents the purpose of a guest’s visit.</em></p><p><em>Attributes: reason</em></p><p><em>Role: Adds clarity to guest visit records.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jVm_a-jugUQqUW9VQm5BOg.png" /><figcaption>Figure 1: ER Diagram</figcaption></figure><p>Here are the Data Flow Diagram (DFD) represents the flow of data within the system, focusing on how data is processed by the system and its entities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*1IP1ckla1yGK-1F3T9sDKg.png" /><figcaption>Figure 2: Level 2 Data Flow Diagram</figcaption></figure><p><strong>Why Use Filament?</strong></p><p>Filament supports the most popular role-and-permission packages such as spatie/laravel-permission out of the box. It provides an intuitive UI to manage roles, permissions, and user access without having to create admin interfaces.</p><p><em>Assigning Roles to Users is Easy.</em></p><p><em>Define permissions and map them into roles.</em></p><p><em>Visually manage user roles and permissions with no coding.</em></p><p>Filament offers a new, modern interface for permission management. It’s designed that an administrator can view and edit the roles and permissions in a pretty easy way, Assign or revoke user access with just a few clicks and Switch between permission-related resources.</p><p>Filament is extremely extensible, can extend its features towards the needs of application.</p><p>Using Filament dispenses with the necessity to create admin dashboards in the permission management system. The prebuilt components make development timesaving while remaining flexible.</p><p><em>Focus on building application-specific features and do not try to re-invent admin interfaces.</em></p><p><em>Leverage out-of-the-box resources to speed up development cycles.</em></p><p>Filament plays nicely with Laravel’s validation system, providing real-time feedback in case of errors and ensuring permission data is valid and consistent.</p><p>Filament allows for secure practices through the integration with Laravel’s authentication and authorization features directly. It ensures:</p><p><em>Role and permission checks are enforced.</em></p><p><em>Sensitive data, such as of roles and permissions, are dealt with securely.</em></p><p><em>It integrates with middleware for route and access protection.</em></p><p>Filament easily integrates with an already-ongoing project in Laravel.</p><p><em>Works within Laravel’s Service container, middlewares, and policies.</em></p><p><em>Extremely compatible with all native features in Laravel: gate and Policy class.</em></p><p><em>Good a documentation base which a developer may extend/customize.</em></p><p>In Laravel, a polymorphic relationship allows a model to belong to more than one other model on a single association. The MorphOne relationship is specifically used when one model is associated with exactly one other model, but the related model can belong to multiple types of models.</p><p><strong>Conclusion</strong></p><p>The ER diagram for users, vehicles, roles, and permissions represents the structuring of data on the Campus Security Vehicle Management System. Laravel simplifies the backend, while Filament enhances role-based access control. This will assure security, scalability, and enhancement of safety and efficiency on campus.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1c80547b7a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Leveraging MVC Architecture for Streamlined Automated University Vehicle Security Management System]]></title>
            <link>https://medium.com/@isharaecc1998/leveraging-mvc-architecture-for-streamlined-automated-university-vehicle-security-management-system-cd068b1f94c2?source=rss-311588f01c68------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd068b1f94c2</guid>
            <dc:creator><![CDATA[Ishara Dabarera]]></dc:creator>
            <pubDate>Sat, 25 Jan 2025 07:50:22 GMT</pubDate>
            <atom:updated>2025-01-25T07:50:22.250Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong></p><p>In today’s fast-moving world, security and efficiency have become the major concerns, especially in institutional settings regarding vehicle access. The current manual system for monitoring and controlling vehicle access to the university involves keeping physical logbooks by the security personnel, which is inefficient and full of errors. This traditional method often results in inconsistencies, delays, and even unauthorized access of vehicles, compromising campus security.</p><p>Such will be ensured by the proposed Automated University Vehicle Security Management System, using MVC architecture combined with Filament in Laravel technology. It is aimed to enhance security operations and improve efficiency in their conduct of operations besides being able to handle vehicle management more effectively for better safety of the institutions and accessibility.</p><p><strong>Understanding MVC Architecture</strong></p><p>MVC architecture is a design pattern that separates an application into three interconnected components,</p><p><strong><em>Model:</em></strong><em> This presents the data and data transaction of the application. It manages the flow of data between the database and other components.</em></p><p><strong><em>View:</em></strong><em> This deals with the user’s interface and the presentation layer, ensuring that users interact with the application efficiently.</em></p><p><strong><em>Controller:</em></strong><em> This is an intermediary between the Model and View, which processes user input, invokes the proper Model functions, and determines which View to show.</em></p><p>This helps developers keep the code much more organized, hence making development more efficient, by splitting responsibilities among these components in an MVC architecture.</p><p><strong>Why MVC for Automated University Vehicle Security Management System</strong></p><p>The Model-View-Controller architecture is a well-structured scalable approach that perfectly fits the needs of an Automated University Vehicle Security Management System. Its separation of concerns allows for efficient handling of key functionalities critical to such a system,</p><p><strong><em>Vehicle Registration</em></strong></p><p><em>View — This provides an interface, basically a dashboard, where students and staff can sign up, adding their vehicles along with license plate numbers and their details.</em></p><p><em>Model — It will store the information of the vehicle securely and manage it.</em></p><p><em>Controller — The controller contains the logic for registration, allowing a smooth interaction between the user and the system.</em></p><p><strong><em>Automatic Vehicle Recognition</em></strong></p><p><em>View — It makes the integration with cameras for license plate scanning pretty easy.</em></p><p><em>Modal — The Model stores a database of registered vehicles.</em></p><p><em>Controller — the Controller processes the recognition request and the View shows the verification result to security personnel.</em></p><p><strong><em>Access Control</em></strong></p><p><em>View — The View may also be used to alert the users in real time about unauthorized attempts, hence keeping access control efficient and secure.</em></p><p><em>Controller — The Controller automates gate operation by matching the license plates with the Model’s database.</em></p><p><strong><em>Real-Time Monitoring</em></strong></p><p><em>Model — The Model, live entries and exits are tracked.</em></p><p><em>Controller — Alerts for unauthorized vehicles will be handled through the Controller.</em></p><p><em>View — The View will represent the interface that security personnel use to oversee operations intuitively.</em></p><p><strong><em>Manual Entry System</em></strong></p><p><em>Controller — The Controller provides functionality for manual entry for vehicles not registered in the system.</em></p><p><em>View — View can be used by the security personnel to log details of unauthorized vehicles.</em></p><p><em>Model — The Model ensures this data is stored for follow-up and analysis.</em></p><p><strong><em>Reporting and Analytics</em></strong></p><p><em>Model — The Model accumulates data about vehicle entrances, unauthorized access attempts, and incidents.</em></p><p><em>Controller — A Controller will process this information to generate reports.</em></p><p><em>View — The View is displayed review and improvements of the security measures.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LgPm9rhJtKWo5uZsAIAoVw.png" /><figcaption>Figure 1</figcaption></figure><p><strong>Implementation Filament Framework in Laravel</strong></p><p>Laravel is a PHP framework based on the MVC pattern. Filament is a generator of admin panels based on Laravel and extends this architecture, making it easier to manage the backend. How they would connect is described as follows:</p><p><em>Model: Eloquent ORM of Laravel allows easy interaction with the database. The developer can define the relationships in vehicles, drivers, and timesheet.</em></p><p><em>View: Blade templates in Laravel give the ability to create dynamic and responsive user interfaces, which are further complemented by an intuitive admin panel powered by Filament for data management.</em></p><p><em>Controller: This is done through the routing-controller system of Laravel, it will process the request with the appropriate business logic and return responses.</em></p><p><strong>Benefits of MVC for the Project</strong></p><p><strong>Separation of Concerns:</strong> The decoupling of the user interface, business logic, and data management provides much better maintainability and scalability.</p><p><strong>Scalability:</strong> Additional features, such as advanced analytics or higher recognition technology, can be added without any problem.</p><p><strong>Reusability:</strong> Most of the components, like the module of registration or analytics logic, can be used across projects and applications.</p><p><strong>Enhanced User Experience:</strong> MVC provides a fast, responsive, and efficient system interface for users as well as the administration.</p><p>The Automated University Vehicle Security Management System, with the MVC architecture using Filament Framework in Laravel, will ensure robust functionality, high performance, and adaptability to handle university vehicle management challenges comprehensively.</p><p><strong>Conclusion</strong></p><p>The MVC architecture of the Automated University Vehicle Security Management System provides a correct and efficient methodology for application development. By pairing Laravel’s capability for MVC implementation with Filament’s admin panel tools, the system is built scalable, maintainable, and assures superior user experience. This will make it fit for the demanding needs in vehicle security and solid for future demands.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd068b1f94c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Comparative Overview of Filament vs. Other Laravel Admin Panel Packages]]></title>
            <link>https://medium.com/@isharaecc1998/a-comparative-overview-of-filament-vs-other-laravel-admin-panel-packages-07f2cfeb270a?source=rss-311588f01c68------2</link>
            <guid isPermaLink="false">https://medium.com/p/07f2cfeb270a</guid>
            <dc:creator><![CDATA[Ishara Dabarera]]></dc:creator>
            <pubDate>Thu, 23 Jan 2025 05:23:01 GMT</pubDate>
            <atom:updated>2025-01-23T05:23:01.540Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What is Filament</strong></p><p>Filament is a modern, open-source admin panel for Laravel applications. It’s designed to be simple, easy to use, and highly flexible. Filament provides a clean, user-friendly interface and robust features to build administrative panels quickly and efficiently. It integrates seamlessly with Laravel and Livewire, offering a no-fuss solution to manage all the backend operations from CRUD (Create, Update, Delete, View) functionalities to form handling and many more.</p><p>The most significant power of Filament is in flexibility and personalization, allowing the developer to tailor the admin panel to their needs for any particular project. Whether it’s an e commerce platform, a content management system, or another web-based application, Filament wants to make your development time less and your productivity more with ready to use components such as tables, forms, and dashboards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*j_MaW8evVTg0Qm1fhOBuJw.png" /><figcaption>Figure 1</figcaption></figure><p><strong>Features of Filament</strong></p><p><strong><em>Customizable UI/UX</em></strong></p><p>Filament is clean and responsive by default, and its look and feel can be adjusted with minimum hassle. The reason is that Filament is integrated with Tailwind CSS, through which developer can style anything the way they want.</p><p><strong><em>CRUD Operations</em></strong></p><p>Filament natively supports record management with intuitive forms and tables to enable a developer to rapidly implement key functionality such as record addition, editing, and deletion.</p><p><strong><em>Livewire Integration</em></strong></p><p>Filament is based on Laravel Livewire, providing real-time interactivity within admin panels without requiring complicated JavaScript. That means a developer can build reactive, dynamic interfaces with much ease.</p><p><strong><em>Role-Based Permissions</em></strong></p><p>Filament support RBAC (role-based access control) which can be used by an administrator to decide what a certain user can or cannot do.</p><p><strong><em>Custom Components</em></strong></p><p>Filament provides a lot of components, like charts, graphs, file uploads, and lots more, developer could also create to fit their specific needs.</p><p><strong>Other Laravel Admin Panel Packages</strong></p><p>There are various robust solutions for admin panels with Laravel, which suit projects based on different project needs and developer preferences. Laravel Nova is a great, feature-rich premium admin panel package for developers who expect a polished admin panel. With its intuitive UI, built-in resource management, and support for custom tools, Nova allows developers create sophisticated admin interfaces fast. However, most of them are free, but this one comes with a licensing fee.</p><p>In contrast, the Backpack for Laravel is another powerful option, especially for those needing flexibility or advanced customization. It provides a simple but extensible framework for building CRUD interfaces with a lot of built-in features, including custom widgets, form fields, and filters. While Backpack is free, many advanced features require paid add-ons that can add to the overall cost.</p><p>On the other hand, AdminLTE is a free open-source admin template which works just perfect with Laravel. Unlike Filament, Nova, or Backpack, AdminLTE is essentially a frontend template, meaning that the integration of the backend needs to be handled by the developer himself. While highly customizable and responsive UIs are provided, the backend functionalities offered by other solutions make it a little more time consuming for the developers who want a complete admin panel.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/42a607c4a189b91658d9522462600299/href">https://medium.com/media/42a607c4a189b91658d9522462600299/href</a></iframe><p><strong>Conclusion</strong></p><p>Concluding, Filament is a modern, intuitive, and fully customizable admin panel that perfectly suits a developer looking for free but powerful solutions in his or her Laravel projects. While Laravel Nova can offer a premium experience with features packed in it for bigger applications, Backpack for Laravel can boast about its flexibility and advanced customizations. AdminLTE is an outstanding free frontend template, but it needs manual backend integration. Ultimately, it depends on your project needs, but Filament is a good balance between simplicity, flexibility, and powerful features.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=07f2cfeb270a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Common Pitfalls to Avoid When Designing REST API Endpoints]]></title>
            <link>https://medium.com/@isharaecc1998/common-pitfalls-to-avoid-when-designing-rest-api-endpoints-5213cf7cf106?source=rss-311588f01c68------2</link>
            <guid isPermaLink="false">https://medium.com/p/5213cf7cf106</guid>
            <dc:creator><![CDATA[Ishara Dabarera]]></dc:creator>
            <pubDate>Sat, 18 Jan 2025 04:46:04 GMT</pubDate>
            <atom:updated>2025-01-18T04:46:04.016Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What is REST API</strong></p><p>A REST API (Representational State Transfer API) is a type of application programming interface using the REST style of architecture for enabling a client to interact with a server via a network. REST APIs can also be applied to connect applications within microservices architectures and for developing mobile apps or the IoT.</p><p><strong>Characteristics of REST APIs</strong></p><p><strong><em>Flexibility: </em></strong><em>REST APIs are flexible, unlike other design approaches like SOAP (Simple Object Access Protocol). REST APIs support multiple data exchange formats for applications.</em></p><p><strong><em>Statelessness: </em></strong><em>REST APIs handle every request independently; that is, the server is able to understand and process the request independent of any previous requests.</em></p><p><strong><em>Client-server autonomy: </em></strong><em>The client and server work independently with different technologies. This makes it easier to change API providers and API consumers.</em></p><p><strong><em>Standard HTTP methods: </em></strong><em>REST APIs utilize the standard HTTP methods like GET, POST, PUT, and DELETE to provide clients with access to the resources and the capability for manipulation.</em></p><p><strong><em>Code on demand: </em></strong><em>REST APIs also support the extension of functionality on the client side through downloading and executing scripts or applets.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*FCJlDv5tr7fQHOIaROgxyg.png" /><figcaption>Figure 1 1</figcaption></figure><p><strong>Common Mistakes to Avoid When Making REST API Endpoints</strong></p><p><strong>Inconsistent Naming: </strong>Forcing the API to use unclear and inconsistent naming conventions: mixed cases, plurals, prefixes, and abbreviations make APIs confusing and hard to use.</p><p><strong><em>How Avoid</em></strong></p><p><em>· Follow a consistent naming convention like snake_case or kebab-case.</em></p><p><em>· Use nouns for resources (e.g., /users) and verbs only for actions outside standard CRUD operations.</em></p><p><em>· Pluralize resource names for collections (e.g., /products instead of /product).</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*49LXFYzMAdyeDBKpHSqK5w.png" /><figcaption>Figure 2 1</figcaption></figure><p><strong>Inconsistent or Repeated API Responses: </strong>APIs returning either unexpected or duplicate information confuse users, and hinder integration.</p><p><strong><em>How Avoid</em></strong></p><p><em>· Standardize response structures, including success and error responses.</em></p><p><em>·Use tools like JSON Schema to define response formats and validate them.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*_qd_rhcStokPtNxvD65ExA.png" /><figcaption>Figure 2 2</figcaption></figure><p><strong>Ignoring Errors and Status Codes: </strong>Incorrect error handling will create unclear responses which will be hard to debug.</p><p><strong><em>How Avoid</em></strong></p><p><em>· Use appropriate HTTP status codes (e.g., 200 OK, 400 Bad Request, 404 Not Found, 500 Internal Server Error).</em></p><p><em>· Return meaningful error messages with enough context.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*YjKM3eLC2pqUatctAaBsWA.png" /><figcaption>Figure 2 3</figcaption></figure><p><strong>Neglecting Security and Authentication: </strong>Lack of authentication and security mechanisms may expose sensitive data to vulnerabilities.</p><p><strong><em>How Avoid</em></strong></p><p><em>· Use secure protocols like HTTPS.</em></p><p><em>· Implement authentication (e.g., OAuth 2.0, JWT).</em></p><p><em>· Validate all inputs to prevent SQL injection or XSS.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*VvRawD3sHLNmg4FP1ZcrOQ.png" /><figcaption>Figure 2 4</figcaption></figure><p><strong>Forgetting Documentation and Testing: </strong>Missing documentation turns APIs difficulty to use, while incomplete testing provides endpoints that should not be trusted.</p><p><strong><em>How Avoid</em></strong></p><p><em>· Use tools like Swagger/OpenAPI for documentation.</em></p><p><em>· Write comprehensive unit and integration tests for all endpoints.</em></p><p><strong><em>Example Tools</em></strong></p><p><em>· Swagger: Generate interactive API docs.</em></p><p><em>· Postman: Test APIs interactively.</em></p><p><strong>Ignoring Caching: </strong>Failure to utilize caching results in increased server load, hence slowing the response times.</p><p><strong><em>How Avoid</em></strong></p><p><em>· Use HTTP caching headers like ETag and Cache-Control.</em></p><p><em>· Implement conditional GET requests with If-Modified-Since.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*Ht6lla8wvBfEfgRxkZOHow.png" /><figcaption>Figure 2 5</figcaption></figure><p><strong>Overcomplicating Responses: </strong>Returning too complex or deeply nested JSON is hard to parse and integrate.</p><p><strong><em>How Avoid</em></strong></p><p><em>· Keep responses simple and flatten unnecessary nesting.</em></p><p><em>· Provide only the required data, avoiding excessive fields.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*0jzunPC48J82zXU1wlfTlw.png" /><figcaption>Figure 2 6</figcaption></figure><p><strong>Data Formatting Errors: </strong>Inconsistent or outdated data schemas cause integration issues.</p><p><strong><em>How Avoid</em></strong></p><p><em>· Use tools like </em><strong><em>JSON Schema</em></strong><em> or </em><strong><em>GraphQL</em></strong><em> to enforce consistent data formatting.</em></p><p><em>· Communicate schema changes via versioning.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*H_FynXav79PFhT3NttJ-eA.png" /><figcaption>Figure 2 7</figcaption></figure><p><strong>Not Rate Limiting APIs: </strong>APIs without rate limits can be abused, overloading servers and degrading performance.</p><p><strong><em>How Avoid</em></strong></p><p><em>· Apply rate limiting by using tools such as NGINX, AWS API Gateway, or middleware.</em></p><p><em>· Return proper HTTP responses when limits are reached.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*AMmYakuh3ok6CVukW_YEFw.png" /><figcaption>Figure 2 8</figcaption></figure><p><strong>Conclusion</strong></p><p>All these common mistakes can be avoided only with some considerate design of APIs, following best practices, and proactive testing and monitoring. A well-designed API means better usability, reliability, and scalability for both developers and end-users.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5213cf7cf106" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>