Giter VIP home page Giter VIP logo

created-by-uploading-excel's Introduction

Excel Import Project

Overview

This project is focused on simplifying the process of importing data from Excel files into your Laravel application. It includes features for secure file uploads, data validation, and real-time updates.

Features

  • Excel File Upload: Allow users to upload Excel files containing data for import.
  • Data Validation: Implement validation checks to ensure the integrity and accuracy of imported data.
  • CSRF Protection: Utilize Laravel's built-in CSRF protection for secure form submissions.
  • Real-Time Updates: Display real-time updates to the user interface after importing data.

Getting Started

Prerequisites

  • PHP installed (8.1)

Installation

  1. Clone the Repository:

    git clone <repository-url>
    cd excel-import
  2. Install Dependencies:

    composer install
  3. Install Maatwebsite/Laravel-Excel Package:

    composer require maatwebsite/excel
  4. Register Package Service Provider and Facade:

    • Open config/app.php and add the following lines:

      'providers' => [
          // ...
          Maatwebsite\Excel\ExcelServiceProvider::class,
      ],
      'aliases' => [
          // ...
          'Excel' => Maatwebsite\Excel\Facades\Excel::class,
      ],
  5. Publish the Package Configuration:

    php artisan vendor:publish --provider="Maatwebsite\Excel\ExcelServiceProvider"

    This will create a config/excel.php file.

  6. Generate Application Key:

    php artisan key:generate
  7. Run Migrations:

    php artisan migrate
  8. Serve the Application:

    php artisan serve

    Access the application at http://localhost:8000.

Usage

  1. Upload Excel File:

    • Visit the designated page for Excel file uploads.
    • Choose an Excel file from your local machine.
  2. Data Validation:

    • The system will perform validation checks on the uploaded data.
    • Any validation errors will be displayed to the user.
  3. Import Data:

    • Once validated, proceed to import the data into the application.
    • Real-time updates will be shown on the user interface.

Sample Excel File

To help you get started, here's a sample Excel file that you can use for testing the import functionality. The file should have the following format:

Name Price
Product A 10.99
Product B 19.95
Product C 5.49

Contributing

Contributions are welcome! Feel free to open issues or pull requests.

created-by-uploading-excel's People

Contributors

yeyint14 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.