Skip to content

Insath97/Laravel-CRUD

Repository files navigation

Laravel Logo

Laravel CRUD Application

Overview

This application is a simple CRUD (Create, Read, Update, Delete) system built with Laravel. It demonstrates how to handle basic operations on a resource, including file uploads and deletions. The system is designed to be user-friendly and efficient, providing a clear example of how to implement CRUD functionality in a Laravel application.

Features

  1. Create, Read, Update, Delete Operations: Manage resources with full CRUD functionality.
  2. File Upload and Delete: Efficiently handle file uploads and deletions.
  3. User-Friendly Interface: Easy-to-navigate and intuitive interface.
  4. Validation and Error Handling: Robust validation and error handling for forms.
  5. Alert Notifications: User-friendly alerts for actions performed.

Technologies Used

  • PHP: The programming language used for developing the application.
  • Laravel: The PHP framework for building the application.
  • MySQL: Relational database management system for storing data.
  • Bootstrap: CSS framework for responsive design.
  • JavaScript: For interactive elements and client-side validation.

Installation

To set up the project locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/your-username/laravel-crud-app.git
    cd laravel-crud-app
  2. Install Dependencies:

    composer install
    npm install
  3. Environment Setup:

    • Copy the .env.example file to .env:

      cp .env.example .env
    • Generate the application key:

      php artisan key:generate
    • Update the .env file with your database credentials.

  4. Run Migrations:

    php artisan migrate
  5. Run Seeders (if any):

    php artisan db:seed
  6. Run the Application:

    php artisan serve

    Your application will be available at http://localhost:8000.

Usage

  • Manage Resources: Add, edit, or delete resources such as products, users, etc.
  • File Handling: Upload and delete files associated with resources.
  • Admin Panel: Use the admin panel to manage users and system settings.
  • Alerts and Notifications: Receive notifications for CRUD operations.

Description of Key Components

Controllers

The controllers handle the incoming HTTP requests, process the data, and return appropriate responses. The primary controller for this application is the CrudController, which manages the CRUD operations for the resource.

Traits

The FileUploadTrait provides methods for handling file uploads and deletions. It is used in the CrudController to manage file operations associated with the resources.

Contributing

Contributions are welcome! If you have suggestions or improvements, feel free to fork the repository and submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For any inquiries or issues, please contact Mohamed Insath at [email protected].


Developed by Mohamed Insath

About

Laravel CRUD application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published