SomeOne

SomeOne

วิธี clone Laravel จาก Github

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...

Read more

laravel10blog

Edit app\Providers\AppServiceProvider.php use Illuminate\Support\Facades\Schema; public function boot() { Schema::defaultStringLength(191); }  filament install : https://filamentphp.com/docs/2.x/admin/installation#requirements composer require filament/filament:"^2.0" แก้ไขไฟล์ composer.json เพิ่มบรรทัดนี้ "post-update-cmd": , CMD สั่ง migrate ตารางข้อมูล php artisan migrate CMD...

Read more

Laravel datatables translate

transaction : ใช้สำหรับการทำงานที่ต้องทำหลายๆงานพร้อมกัน โดยถ้ามีงานใดงานหนึ่งไม่สำเร็จ งานทุกงานที่ทำไปจะ rolled back ค่ากลับไป หรือก็คือจะไม่มีอะไรเกิดขึ้น ทุกอย่างยังเหมือนเดิม เหมาะกับงานที่เกี่ยวกพันกัน หรือมุ่งหวังให้ทุกงาน ต้องสำเร็จเหมือนกัน ในการรัยครั้งเดียว จะสำเร็จ แค่งานใดงานนึงไม่ได้ โดย method นี้จะรับข้อมูลเข้า 2 ตัว ตัวแรกเป็น callback function สำหรับรันคำสั่ง ตัวที่ 2 เป็นตัวเลข จำนวนครั้งที่ลองทำซ้ำอีกครั้ง แนะนำว่าให้ว่างไว้...

Read more

Laravel Setup Demo for Query Builder Eloquent

สร้างไฟล์ migration ชื่อตารางเป็น พหูพจน์ php artisan make:migration create_phones_table แก้ไขไฟล์ migration Schema::create('phones', function (Blueprint $table) { $table->integerIncrements('id'); $table->string('name'); $table->string('display'); $table->integer('weight',false,true); }); สั่ง migrate php artisan migrate สร้าง model ใช้ชื่อเดียวกับตาราง แต่เป็น เอกพจน์...

Read more
Page 1 of 7 1 2 7

FOLLOW ME

INSTAGRAM PHOTOS

Welcome Back!

Login to your account below

Retrieve your password

Please enter your username or email address to reset your password.