Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- download or clone project
- Go to the folder application using cd
- Run composer install on your cmd or terminal
- Copy .env.example file to .env on root folder.You can type copy .env.example .env if using command prompt Windows
- Open your .env file and change the database name (DB_DATABASE)
- Run php artisan key:generate
- Run php artisan migrate
- Run php artisan serve
composer require "maatwebsite/excel:~2.1.0"
In Config / app.php
Maatwebsite\Excel\ExcelServiceProvider::class,
Laravel\Tinker\TinkerServiceProvider::class,
'Excel' => Maatwebsite\Excel\Facades\Excel::class,Create DataBase Table
php artisan make:migration create_cache_table --create=cache
php artisan make:migration create_books_table --create=books
Create Controller
php artisan make:controller BookController
auth
php artisan make:auth
Create Model
php artisan make:model Author
php artisan make:model Book
