S/N | DIRECTORY | DESCRIPTION |
---|---|---|
1 | /app | contains all of your application code รหัสส่วนใหญ่จะอยู่ที่โฟลเดอร์นี้ |
2 | /app/Console | contains all of your artisan commands ที่เก้บคำสั่งของ artisan เครื่องมือช่วยสร้าง |
3 | /app/Events | contains event classes |
4 | /app/Exceptions | contains exception handling classes |
5 | /app/Http | contains controllers, filters, and requests ที่เก็บรหัสพวก คอนโทรล ตัวกรอง ใช่บ่อยมาก |
6 | /app/Jobs | contains jobs that can be queued |
7 | /app/Listeners | contains handler classes for events |
8 | /bootstrap | contains files required by the bootstrap framework |
9 | /config | contains the application configuration files |
10 | /database | Contains database migrations and seeds. It is also used to store the database for SQLite เก็บไฟล์เชื่อมฐานข้อมูล |
11 | /public | contains the front controllers and assets such as images, CSS, JavaScript etc. เก็บคำสั่งแสดงหน้าเว็บ สคริป ภาพ |
12 | /storage | contains compiled blade templates, filed based sessions, etc. |
13 | /tests | contains automated unit tests |
14 | /vendor | contains composer dependencies เก็บคำสั่งของ laravel เลย composer ที่โหลดมาจะอยู่ที่นี้ |
ให้ไปแก้ไขที่ /config/database.php ที่ตำแหน่ง MySQL ในการใช้งานต้องดูด้วยว่าเราใช้ระบบฐานข้อมูลชนิดไหน เพื่อมีหลายแบบ แต่ตอนนี้ให้ทดลองที่ MySQL นะครับ
ให้แก้ไขตามนี้
แก้ไขที่
แก้ไขที่
- database
- username
- password
ก่อนแก้ไข
1 2 3 4 5 6 7 8 9 10 11
หลังแก้ไข
1 2 3 4 5 6 7 8 9 10 11
ไม่มีความคิดเห็น:
แสดงความคิดเห็น