lopatin96/laravel-cashier-shop

Laravel cashier shop

1.0.23 2024-05-22 18:07 UTC

README

Trait

Add HasOrders trait to User model.

use Atin\LaravelCashierShop\Traits\HasOrders;

class User extends Authenticatable
{
    use HasOrders;

Products

Create app/Products directory and Campaign class:

use Atin\LaravelCashierShop\Models\Order;

class TestProduct extends Product
{
    protected function run(Order $order): void
    {
         $order->user->config->forceU
    }
}

Publishing

Localization

php artisan vendor:publish --tag="laravel-cashier-shop-lang"

Views

php artisan vendor:publish --tag="laravel-cashier-shop-views"

Config

php artisan vendor:publish --tag="laravel-cashier-shop-config"

Migrations

php artisan vendor:publish --tag="laravel-cashier-shop-migrations"