Chapter 01

前提知識

ta.toshio
ta.toshio
2021.04.22に更新

リンク

モデル

product

商品。Tシャツとか。
typeにBASIC, DOWNLOAD, VARIABLE PRODUCTがある。

property

パソコンで言うとプロセッサー種類とメモリ種類、とのこと。

attribute

Tシャツで言うとサイズや色

ただしproduct.typeがvariable Productのときのみ利用できるらしい

フォルダ構成

/var/www/vendor/avored/framework/src
$ tree -L 2
.
|-- AvoRedProvider.php
|-- Breadcrumb
|   |-- Breadcrumb.php
|   `-- Builder.php
|-- Cart
|   |-- CartProduct.php
|   `-- Manager.php
|-- Catalog
|   |-- Controllers
|   `-- Requests
|-- Cms
|   |-- Controllers
|   `-- Requests
|-- Database
|   |-- Contracts
|   |-- Models
|   |-- Repository
|   `-- Traits
|-- Graphql
|   |-- Mutations
|   |-- Queries
|   `-- Types
|-- Menu
|   |-- MenuBuilder.php
|   |-- MenuItem.php
|   `-- MenuProvider.php
|-- Modules
|   |-- Console
|   |-- Manager.php
|   `-- Module.php
|-- Order
|   |-- Controllers
|   |-- Events
|   |-- Listeners
|   |-- Mail
|   |-- Observers
|   `-- Requests
|-- Payment
|   `-- Manager.php
|-- Permission
|   |-- Manager.php
|   |-- Permission.php
|   `-- PermissionGroup.php
|-- Promotion
|   |-- Controllers
|   |-- Requests
|   `-- ViewModels
|-- Report
|   |-- Controllers
|   `-- Report
|-- Shipping
|   `-- Manager.php
|-- Support
|   |-- Console
|   |-- Contracts
|   |-- Facades
|   |-- Middleware
|   `-- Providers
|-- System
|   |-- Controllers
|   |-- Requests
|   `-- ViewComposers
|-- Tab
|   |-- Manager.php
|   `-- TabItem.php
|-- User
|   |-- Controllers
|   |-- Notifications
|   |-- Observers
|   `-- Requests
`-- Widget
    |-- TotalCustomer.php
    |-- TotalOrder.php
    |-- TotalRevenue.php
    |-- Widget.php
    `-- WidgetManager.php

54 directories, 22 files

機能毎に分けているよう。