biwottech / Laravel-8-Import-CSV

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel CSV Import with Matching Fields

A demo project with Laravel 8 and Laravel Excel package, to import CSV file and choose the DB fields to match the CSV column.

For design boilerplate, it uses our Laravel Breeze Pages Skeleton.

Laravel CSV Import - CSV File

Laravel CSV Import - Pick Fields

Laravel CSV Import - Result Table


How to use

Clone this project to your local computer.

git clone https://github.com/LaravelDaily/Laravel-8-Import-CSV.git

Navigate to the project folder.

cd Laravel-8-Import-CSV

Install required packages.

composer install

create new .env file and edit database credentials there.

cp .env.example .env

Generate new app key.

php artisan key:generate

Run migrations. (it has some seeded data for your testing)

php artisan migrate --seed

That's it: launch the main URL


More from our LaravelDaily Team

About


Languages

Language:PHP 75.4%Language:Blade 24.0%Language:Shell 0.6%