'b2buy', /* * Package. */ 'package' => 'buyer', /* * Modules. */ 'modules' => ['buyer'], 'buyer' => [ 'model' => [ 'model' => \B2buy\Buyer\Models\Buyer::class, 'table' => 'buyers', 'presenter' => \B2buy\Buyer\Repositories\Presenter\BuyerPresenter::class, 'hidden' => [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'createdat', 'updated_at'], 'appends' => [], 'fillable' => ['id', 'reporting_to', 'name', 'email', 'password', 'company_name', 'abn', 'title', 'api_token', 'remember_token', 'sex', 'dob', 'designation', 'mobile', 'phone', 'address', 'financial_authorization', 'work_email', 'alternative_phone', 'street', 'city', 'district', 'state', 'country', 'photo', 'web', 'permissions', 'status', 'email_verified_at', 'user_id', 'user_type', 'user_mode', 'upload_folder', 'deleted_at', 'created_at', 'updated_at', 'team_id', 'trading_name', 'duns_number', 'registered_office', 'fb_url', 'linkedin_url', 'directors', 'documents'], 'translatables' => [], 'upload_folder' => 'buyer/buyer', 'uploads' => [ /* 'images' => [ 'count' => 10, 'type' => 'image', ], 'file' => [ 'count' => 1, 'type' => 'file', ], */ ], 'casts' => [ /* 'images' => 'array', 'file' => 'array', */ ], 'revision' => [], 'perPage' => '20', 'search' => [ 'name' => 'like', 'status', ] ], 'controller' => [ 'provider' => 'B2buy', 'package' => 'Buyer', 'module' => 'Buyer', ], 'workflow' => [ 'points' => [ 'start' => 'draft', 'end' => ['delete'], ], 'steps' => [ 'draft' => [ 'label' => "Buyer created", 'action' => ['setStatus', 'draft'], 'next' => ['complete'], ], 'complete' => [ 'label' => "Buyer completed", 'status' => ['setStatus', 'complete'], 'next' => ['verify'], ], 'verify' => [ 'label' => "Buyer verified", 'action' => ['setStatus', 'verify'], 'next' => ['approve'], ], 'approve' => [ 'label' => "Buyer approved", 'action' => ['setStatus', 'approve'], 'next' => ['publish'], ], 'publish' => [ 'label' => "Buyer published", 'action' => ['setStatus', 'publish'], 'next' => ['unpublish', 'delete', 'target', 'archive'], ], 'unpublish' => [ 'label' => "Buyer unpublished", 'action' => ['setStatus', 'unpublish'], 'next' => ['publish', 'target', 'archive', 'delete'], ], 'archive' => [ 'label' => "Buyer archived", 'action' => ['setStatus', 'archive'], 'next' => ['publish', 'delete'], ], 'delete' => [ 'Label' => "Buyer deleted", 'status' => ['delete', 'archive'], ], ], ], ], ];