1. Laracademy Generators
- Tạo một motel từ table sau khi đã tạo từ mirgration
- Ví dụ: php artisan generate:modelfromtable –table=posts –folder=App/Models –singular
- Xem thêm chi tiết tại Link: https://github.com/laracademy/generators
2. Laravel Shopping Cart
- Ví dụ add giỏ hàng
\Cart::add(
[
'id' => uniqid(),
'name' => $product->title,
'price' => $price,
'quantity' => $params['quantity'],
'attributes' => [],
'associatedModel' => $product,
]
);
- Remove item
\Cart::remove($rowId);
- Xem chi tiết tại: https://github.com/darryldecode/laravelshoppingcart
3. Phần quyền:
- Xem chi tiết: https://github.com/spatie/laravel-permission
4. Tạo code generate
- Xem chi tiết: https://laravelarticle.com/laravel-custom-id-generator