Laravel basic

17 ก.ค. 2017 , 2,942 Views   , หมวดหมู่ Laravel ทุกหมวดหมู่ โค๊ดดิ้ง   , ป้ายกำกับ:


ดาวน์โหลดและติดตั้ง
https://drivesoftcenter.net/tutorial/laravel/basic/ดาวโหลดและติดตั้ง-laravel-ด้วย-php-composer

พื้นฐาน

https://www.youtube.com/watch?v=zUzj912jFGo&list=PLgENhIJwXDdFpJ6rmMi_Edxl7W98tiGk9
https://www.youtube.com/watch?v=Z1SlE06uiXM

การสร้าง Model

https://laravel.com/docs/5.4/eloquent
ชื่อ Table ต้องเป็นพหุพจน์ของชื่อ Class ใน Model
เช่น class Flight extends Model ชื่อ Table ต้องเป็น flights
หากต้องการกำหนดอย่างอื่นให้ใส่ protected $table = ‘my_flights’;

ฟิวด์ในตารางกำหนดให้ต้องมีฟิวด์ id type int auto_increment notnull pk
โดยค่าเริ่มต้น Eloquent คาดว่าจะมีคอลัมน์ created_at และ updated_at อยู่ในตารางของคุณ ถ้าไม่ใช้ต้องประกาศใว้ใน Model ว่า public $timestamps = false;

 

https://startupcto.net/รวมบทความและ-video-สอน-laravel-5-online-ภาษาไทย-81229f4b5fb4

https://www.eventpop.me/e/1265-laravel

http://www.thaicreate.com/community/laravel.html

http://www.saimok.com/category/laravel-framework-5-0/

http://benzneststudios.com/blog/category/laravel/

https://scotch.io/tutorials?dFR[tags][0]=laravel

ตัวอย่างการสร้าง Rounting

https://scotch.io/tutorials/simple-and-easy-laravel-routing

Create Reading Update Delete

https://scotch.io/tutorials/simple-laravel-crud-with-resource-controllers

Role,Admin

https://laracasts.com/discuss/channels/laravel/user-admin-authentication
https://laracasts.com/discuss/channels/general-discussion/check-if-user-has-admin-role
https://github.com/romanbican/roles

Building Employee Management System by using Laravel 5.4 and Adminlte

User Authorization in Laravel 5.4 with Spatie Laravel-Permission

https://scotch.io/tutorials/user-authorization-in-laravel-54-with-spatie-laravel-permission

https://laravel-news.com/authorization-gates

Easy roles and permissions in Laravel 5.4

openlaravel

https://openlaravel.com/

เริ่มต้นเขียน Laravel

https://laracasts.com/series/laravel-from-scratch-2017

Timezone Date time

Laravel the Timemaster – time convertions with DateTime PHP

https://laracasts.com/discuss/channels/laravel/how-to-convert-timezone-from-users-time-to-utc-on-saving-and-back-from-utc-to-users-time-zone-on-read

https://github.com/briannesbitt/Carbon

https://laracasts.com/discuss/channels/general-discussion/eloquent-carbon-and-displaying-dates-in-a-users-local-timezone

Add Custom Class

https://stackoverflow.com/questions/42456186/custom-class-and-serviceprovider-laravel-5-4

https://laravel-news.com/automatic-facades

Vue

http://itsolutionstuff.com/post/laravel-5-and-vue-js-crud-with-pagination-example-and-demo-from-scratchexample.html

Search

https://stackoverflow.com/questions/24852704/laravel-search-query-with-multiple-conditions

รวมคำสั่งเกี่ยวกับ Database

www.saimok.com/2015/06/10/laravel-5-การใช้งาน-database-เบื้องต้น/

 

คู่มือการใช้งาน Laravel 4 Online

https://leanpub.com/thailaraveldoc/read

 

https://www.reddit.com/r/laravel/

Group Grid


ป้ายกำกับ: