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.
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
- Enroll in our Laravel Online Courses
- Check out our adminpanel generator QuickAdminPanel
- Purchase our Livewire Kit
- Subscribe to our YouTube channel Laravel Daily