1.เปิด Terminal แล้วไปยังโฟลเดอร์ปลายทาง
example cd C:\xampp\htdocs cd C:\xampp\htdocs\Playground
2. Run Clone Repository
แบบที่ 1 แบบนี้จะใช้ชื่อเดิมของ Repository เลย
git clone https://github.com/xxxxx/laravel_project.git example git clone https://github.com/LaravelDaily/Laravel-Filament-Admin.git
แบบที่ 2 เปลี่ยนชื่อ folder เป็นชื่อใหม่
git clone https://github.com/xxxxx/laravel_project.git folder_project cd folder_project example git clone https://github.com/LaravelDaily/Laravel-Filament-Admin-Course.git LaravelFilamentAdmin cd LaravelFilamentAdmin
3. Setting Up Project
composer install
บางปกรณี จะขึ้น error และแจ้งให้เรา Update
composer update
4.Setup .env file
copy .env.example .env
php artisan key:generate
5.Setup Database ใน .env file
Run migrate กรณีที่มีการสร้างหรือเตรียมข้อมูล migration fileไว้แล้ว
php artisan migrate
คำสั่งเพิ่มเติม กรณีใช้ SESSION_DRIVER=database
php artisan session:table php artisan migrate
6.รันดูหน้าเว็บ
php artisan serve
https://medium.com/ckartisan/how-to-clone-laravel-from-github-6723377e6e1
https://gist.github.com/harisfi/ec3fae34680c38706cbf3ee978a7172b