laravel-cashier-shop maintained by lopatin96
Description
Laravel cashier shop
Author
Last update
2025/03/05 21:15
(dev-main)
License
Downloads
4 863
Last update
2024/11/22 19:00
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/11/22 15:16
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/11/22 14:42
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/11/22 14:38
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/11/22 13:51
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/11/22 13:40
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/11/22 12:36
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/11/18 10:55
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/11/17 01:13
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/11/17 00:36
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/11/16 18:57
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/11/14 14:08
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/11/13 15:22
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/11/06 15:14
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/11/06 12:23
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/11/06 10:45
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/11/06 10:19
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/11/02 11:19
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/10/14 12:01
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/10/10 20:58
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/10/10 20:54
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/09/06 17:07
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/09/03 13:35
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/09/03 13:25
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/09/03 13:13
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/06/24 11:55
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/06/24 11:47
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/06/20 19:02
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/05/24 13:37
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/05/24 09:51
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/05/22 20:07
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/05/22 20:07
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/05/22 16:03
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/05/22 16:03
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/05/17 03:04
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/05/13 23:12
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/04/21 18:33
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/04/17 10:38
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/04/11 18:05
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/04/10 02:30
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/04/10 00:55
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/04/07 22:38
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/04/04 01:46
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/03/27 15:49
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
- lopatin96/laravel-configurator ^1.0
Last update
2024/03/27 15:01
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
Last update
2024/03/26 16:21
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
Last update
2024/03/26 03:26
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
Last update
2024/03/26 00:25
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
Last update
2024/03/25 02:27
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
Last update
2024/03/24 16:53
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
Last update
2024/03/24 16:43
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
Last update
2024/03/24 04:56
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
Last update
2024/03/24 04:17
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
Last update
2024/03/24 02:52
License
Require
- php >=8.1
- lopatin96/laravel-ui-components ^1.0
- lopatin96/laravel-activitylog ^1.0
- veelasky/laravel-hashid *
Install
Create app/View/Components/ShopLayout.php.
<?php
namespace App\View\Components;
use Illuminate\View\Component;
use Illuminate\View\View;
class ShopLayout extends Component
{
public function render(): View
{
return view('layouts.shop');
}
}
Create resources/views/layouts/shop.blade.php.
Trait
Add HasOrders trait and cast to User model.
use Atin\LaravelCashierShop\Traits\HasOrders;
class User extends Authenticatable
{
use HasOrders;
protected $casts = [
…
'shop_visited_at' => 'datetime',
];
Products
Create app/Products directory and TestProduct class:
<?php
namespace App\Products;
use App\Models\User;
use Atin\LaravelCashierShop\Interfaces\Product;
use Atin\LaravelCashierShop\Models\Order;
class TestProduct implements Product
{
public function process(Order $order): void
{
// TODO: Implement process() method.
}
public function isListed(User $user): bool
{
// TODO: Implement isListed() method.
}
public function isPurchasable(User $user): bool
{
// TODO: Implement isPurchasable() method.
}
}
Console
Add DeleteTooOldIncompleteOrders to app/Console/Kernel.php
use Atin\LaravelCashierShop\Console\DeleteTooOldIncompleteOrders;
class Kernel extends ConsoleKernel
{
protected function schedule(Schedule $schedule): void
{
$schedule->call(new DeleteTooOldIncompleteOrders)->daily();
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"