Compare commits

..

1 Commits

Author SHA1 Message Date
87f7581aca basics test 2024-09-18 15:15:57 -07:00
43 changed files with 341 additions and 374 deletions

View File

@ -4,8 +4,8 @@
enum OrderStatus: string enum OrderStatus: string
{ {
case APPROVED = 'Approved'; case APPROVED = 'Approved';
case PRODUCTION = 'Production'; case PRODUCTION = 'Production';
case SHIPPED = 'Shipped'; case SHIPPED = 'Shipped';
case INVOICED = 'Invoiced'; case INVOICED = 'Invoiced';
} }

View File

@ -5,8 +5,8 @@
enum OrderType: string enum OrderType: string
{ {
case EMBROIDERY = 'Embroidery'; case EMBROIDERY = 'Embroidery';
case SCREEN = 'Screen printing'; case SCREEN = 'Screen printing';
case DTG = 'Direct-to-garment'; case DTG = 'Direct-to-garment';
case VINYL = 'Vinyl'; case VINYL = 'Vinyl';
case MISC = 'Misc'; case MISC = 'Misc';
} }

View File

@ -5,6 +5,6 @@
enum ShippingType: string enum ShippingType: string
{ {
case THEY_SHIP = 'They ship'; case THEY_SHIP = 'They ship';
case WE_SHIP = 'We ship'; case WE_SHIP = 'We ship';
case PICKUP = 'Pickup'; case PICKUP = 'Pickup';
} }

View File

@ -48,8 +48,8 @@ public function __construct()
protected function validator(array $data) protected function validator(array $data)
{ {
return Validator::make($data, [ return Validator::make($data, [
'name' => ['required', 'string', 'max:255'], 'name' => ['required', 'string', 'max:255'],
'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
'password' => ['required', 'string', 'min:8', 'confirmed'], 'password' => ['required', 'string', 'min:8', 'confirmed'],
]); ]);
} }
@ -62,8 +62,8 @@ protected function validator(array $data)
protected function create(array $data) protected function create(array $data)
{ {
return User::create([ return User::create([
'name' => $data['name'], 'name' => $data['name'],
'email' => $data['email'], 'email' => $data['email'],
'password' => Hash::make($data['password']), 'password' => Hash::make($data['password']),
]); ]);
} }

View File

@ -16,7 +16,7 @@ public function index(?string $tab = null)
return view('management.index', [ return view('management.index', [
'customers' => Customer::all(), 'customers' => Customer::all(),
'tab' => $tab, 'tab' => $tab,
]); ]);
} }
} }

View File

@ -12,11 +12,11 @@ public function rules(): array
return [ return [
'customer_id' => 'required|exists:customers,id', 'customer_id' => 'required|exists:customers,id',
'first_name' => 'string', 'first_name' => 'string',
'last_name' => 'string', 'last_name' => 'string',
'email' => 'string', 'email' => 'string',
'phone' => 'string', 'phone' => 'string',
'notes' => 'string', 'notes' => 'string',
]; ];
} }

View File

@ -9,11 +9,11 @@ class CustomerRequest extends FormRequest
public function rules() public function rules()
{ {
return [ return [
'company_name' => 'required', 'company_name' => 'required',
'internal_name' => 'required', 'internal_name' => 'required',
'shipping_address' => 'required', 'shipping_address' => 'required',
'billing_address' => 'required', 'billing_address' => 'required',
'phone' => 'required', 'phone' => 'required',
]; ];
} }

View File

@ -9,10 +9,10 @@ class OrderProductRequest extends FormRequest
public function rules(): array public function rules(): array
{ {
return [ return [
'order_id' => ['required', 'exists:orders'], 'order_id' => ['required', 'exists:orders'],
'sku' => ['string', 'nullable'], 'sku' => ['string', 'nullable'],
'product_name' => ['required'], 'product_name' => ['required'],
'color' => ['string', 'nullable'], 'color' => ['string', 'nullable'],
]; ];
} }

View File

@ -9,20 +9,20 @@ class OrderRequest extends FormRequest
public function rules(): array public function rules(): array
{ {
return [ return [
'customer_id' => ['required', 'exists:customers,id'], 'customer_id' => ['required', 'exists:customers,id'],
'contact_id' => ['nullable', 'exists:contacts,id'], 'contact_id' => ['nullable', 'exists:contacts,id'],
'customer_po' => ['required', 'string'], 'customer_po' => ['required', 'string'],
'order_type' => ['required', 'string'], 'order_type' => ['required', 'string'],
'order_date' => ['required', 'date'], 'order_date' => ['required', 'date'],
'due_date' => ['required', 'date'], 'due_date' => ['required', 'date'],
'status' => ['required'], 'status' => ['required'],
'rush' => ['nullable'], 'rush' => ['nullable'],
'new_art' => ['nullable'], 'new_art' => ['nullable'],
'digitizing' => ['nullable'], 'digitizing' => ['nullable'],
'repeat' => ['nullable'], 'repeat' => ['nullable'],
'purchased_garments' => ['nullable'], 'purchased_garments' => ['nullable'],
'customer_supplied_file' => ['nullable'], 'customer_supplied_file' => ['nullable'],
'notes' => ['nullable'], 'notes' => ['nullable'],
]; ];
} }

View File

@ -10,10 +10,10 @@ public function rules(): array
{ {
return [ return [
'date_received' => 'required|date', 'date_received' => 'required|date',
'customer_id' => 'required|exists:customers,id', 'customer_id' => 'required|exists:customers,id',
'order_id' => 'string|nullable', 'order_id' => 'string|nullable',
'amount' => 'required|string', 'amount' => 'required|string',
'contents' => 'required|string', 'contents' => 'required|string',
'from_customer' => 'required|bool', 'from_customer' => 'required|bool',
]; ];
} }

View File

@ -10,12 +10,12 @@ public function rules(): array
{ {
return [ return [
'order_product_id' => ['required', 'exists:order_products'], 'order_product_id' => ['required', 'exists:order_products'],
'service_file_id' => ['nullable', 'exists:service_files'], 'service_file_id' => ['nullable', 'exists:service_files'],
'service_type' => ['required'], 'service_type' => ['required'],
'placement' => ['required'], 'placement' => ['required'],
'setup_amount' => ['required'], 'setup_amount' => ['required'],
'amount' => ['nullable'], 'amount' => ['nullable'],
'amount_price' => ['nullable'], 'amount_price' => ['nullable'],
]; ];
} }

View File

@ -10,8 +10,8 @@ public function rules(): array
{ {
return [ return [
'order_product_id' => ['required', 'exists:order_products'], 'order_product_id' => ['required', 'exists:order_products'],
'size' => ['required'], 'size' => ['required'],
'amount' => ['required'], 'amount' => ['required'],
]; ];
} }

View File

@ -9,11 +9,11 @@ class ServiceFileRequest extends FormRequest
public function rules(): array public function rules(): array
{ {
return [ return [
'code' => ['required'], 'code' => ['required'],
'name' => ['required'], 'name' => ['required'],
'width' => ['required', 'numeric'], 'width' => ['required', 'numeric'],
'height' => ['required', 'numeric'], 'height' => ['required', 'numeric'],
'unit' => ['required'], 'unit' => ['required'],
]; ];
} }

View File

@ -9,16 +9,16 @@ class ShippingEntryRequest extends FormRequest
public function rules(): array public function rules(): array
{ {
return [ return [
'shipping_type' => ['required'], 'shipping_type' => ['required'],
'customer_id' => ['required', 'exists:customers,id'], 'customer_id' => ['required', 'exists:customers,id'],
'courier' => ['nullable'], 'courier' => ['nullable'],
'contact' => ['nullable'], 'contact' => ['nullable'],
'account_title' => ['nullable'], 'account_title' => ['nullable'],
'account_username' => ['nullable'], 'account_username' => ['nullable'],
'account_password' => ['nullable'], 'account_password' => ['nullable'],
'info_needed' => ['nullable'], 'info_needed' => ['nullable'],
'notify' => ['nullable'], 'notify' => ['nullable'],
'notes' => ['nullable'], 'notes' => ['nullable'],
]; ];
} }

View File

@ -1,25 +0,0 @@
<?php
namespace App\Livewire;
use Livewire\Component;
class Counter extends Component
{
public $count = 1;
public function increment()
{
$this->count++;
}
public function decrement()
{
$this->count--;
}
public function render()
{
return view('livewire.counter');
}
}

View File

@ -20,7 +20,7 @@ class CreateOrder extends Component
public function mount(Collection $customers) public function mount(Collection $customers)
{ {
$this->customers = $customers; $this->customers = $customers;
$this->contacts = $customers->first()->contacts; $this->contacts = $customers->first()->contacts;
} }
public function getContacts() public function getContacts()
@ -31,12 +31,12 @@ public function getContacts()
public function render() public function render()
{ {
return view('livewire.create-order', [ return view('livewire.create-order', [
'contacts' => $this->contacts, 'contacts' => $this->contacts,
'order_types' => OrderType::cases(), 'order_types' => OrderType::cases(),
'order_status' => OrderStatus::cases(), 'order_status' => OrderStatus::cases(),
'customers' => $this->customers, 'customers' => $this->customers,
'today' => Carbon::today()->format('Y-m-d'), 'today' => Carbon::today()->format('Y-m-d'),
'due_default' => Carbon::today()->addDay(10)->format('Y-m-d'), 'due_default' => Carbon::today()->addDay(10)->format('Y-m-d'),
]); ]);
} }
} }

View File

@ -35,7 +35,7 @@ public function render()
{ {
return view('livewire.customer-and-contact-select', [ return view('livewire.customer-and-contact-select', [
'customers' => $this->customers, 'customers' => $this->customers,
'contacts' => $this->contacts, 'contacts' => $this->contacts,
]); ]);
} }
} }

View File

@ -27,11 +27,11 @@ class OrdersTable extends Component
public function mount(bool $showCustomerColumn, string $orderType, string $title, ?string $customer_id = null) public function mount(bool $showCustomerColumn, string $orderType, string $title, ?string $customer_id = null)
{ {
$this->today = Carbon::today(); $this->today = Carbon::today();
$this->showCustomerColumn = $showCustomerColumn; $this->showCustomerColumn = $showCustomerColumn;
$this->orderType = $orderType; $this->orderType = $orderType;
$this->title = $title; $this->title = $title;
$this->customer_id = $customer_id ?? ''; $this->customer_id = $customer_id ?? '';
} }
public function render() public function render()

View File

@ -48,7 +48,7 @@ public static function boot()
public function generateInternalPo($id): string public function generateInternalPo($id): string
{ {
$po = str_pad($id, 4, '0', STR_PAD_LEFT); $po = str_pad($id, 4, '0', STR_PAD_LEFT);
$year = date('y'); $year = date('y');
return 'TN'.$year.'-'.$po; return 'TN'.$year.'-'.$po;

View File

@ -41,7 +41,7 @@ protected function casts(): array
{ {
return [ return [
'email_verified_at' => 'datetime', 'email_verified_at' => 'datetime',
'password' => 'hashed', 'password' => 'hashed',
]; ];
} }
} }

View File

@ -120,7 +120,7 @@
'maintenance' => [ 'maintenance' => [
'driver' => env('APP_MAINTENANCE_DRIVER', 'file'), 'driver' => env('APP_MAINTENANCE_DRIVER', 'file'),
'store' => env('APP_MAINTENANCE_STORE', 'database'), 'store' => env('APP_MAINTENANCE_STORE', 'database'),
], ],
]; ];

View File

@ -14,7 +14,7 @@
*/ */
'defaults' => [ 'defaults' => [
'guard' => env('AUTH_GUARD', 'web'), 'guard' => env('AUTH_GUARD', 'web'),
'passwords' => env('AUTH_PASSWORD_BROKER', 'users'), 'passwords' => env('AUTH_PASSWORD_BROKER', 'users'),
], ],
@ -37,7 +37,7 @@
'guards' => [ 'guards' => [
'web' => [ 'web' => [
'driver' => 'session', 'driver' => 'session',
'provider' => 'users', 'provider' => 'users',
], ],
], ],
@ -62,7 +62,7 @@
'providers' => [ 'providers' => [
'users' => [ 'users' => [
'driver' => 'eloquent', 'driver' => 'eloquent',
'model' => env('AUTH_MODEL', App\Models\User::class), 'model' => env('AUTH_MODEL', App\Models\User::class),
], ],
// 'users' => [ // 'users' => [
@ -93,8 +93,8 @@
'passwords' => [ 'passwords' => [
'users' => [ 'users' => [
'provider' => 'users', 'provider' => 'users',
'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'), 'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'),
'expire' => 60, 'expire' => 60,
'throttle' => 60, 'throttle' => 60,
], ],
], ],

View File

@ -34,28 +34,28 @@
'stores' => [ 'stores' => [
'array' => [ 'array' => [
'driver' => 'array', 'driver' => 'array',
'serialize' => false, 'serialize' => false,
], ],
'database' => [ 'database' => [
'driver' => 'database', 'driver' => 'database',
'connection' => env('DB_CACHE_CONNECTION'), 'connection' => env('DB_CACHE_CONNECTION'),
'table' => env('DB_CACHE_TABLE', 'cache'), 'table' => env('DB_CACHE_TABLE', 'cache'),
'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'), 'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'),
'lock_table' => env('DB_CACHE_LOCK_TABLE'), 'lock_table' => env('DB_CACHE_LOCK_TABLE'),
], ],
'file' => [ 'file' => [
'driver' => 'file', 'driver' => 'file',
'path' => storage_path('framework/cache/data'), 'path' => storage_path('framework/cache/data'),
'lock_path' => storage_path('framework/cache/data'), 'lock_path' => storage_path('framework/cache/data'),
], ],
'memcached' => [ 'memcached' => [
'driver' => 'memcached', 'driver' => 'memcached',
'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
'sasl' => [ 'sasl' => [
env('MEMCACHED_USERNAME'), env('MEMCACHED_USERNAME'),
env('MEMCACHED_PASSWORD'), env('MEMCACHED_PASSWORD'),
], ],
@ -64,25 +64,25 @@
], ],
'servers' => [ 'servers' => [
[ [
'host' => env('MEMCACHED_HOST', '127.0.0.1'), 'host' => env('MEMCACHED_HOST', '127.0.0.1'),
'port' => env('MEMCACHED_PORT', 11211), 'port' => env('MEMCACHED_PORT', 11211),
'weight' => 100, 'weight' => 100,
], ],
], ],
], ],
'redis' => [ 'redis' => [
'driver' => 'redis', 'driver' => 'redis',
'connection' => env('REDIS_CACHE_CONNECTION', 'cache'), 'connection' => env('REDIS_CACHE_CONNECTION', 'cache'),
'lock_connection' => env('REDIS_CACHE_LOCK_CONNECTION', 'default'), 'lock_connection' => env('REDIS_CACHE_LOCK_CONNECTION', 'default'),
], ],
'dynamodb' => [ 'dynamodb' => [
'driver' => 'dynamodb', 'driver' => 'dynamodb',
'key' => env('AWS_ACCESS_KEY_ID'), 'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'), 'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
'endpoint' => env('DYNAMODB_ENDPOINT'), 'endpoint' => env('DYNAMODB_ENDPOINT'),
], ],

View File

@ -32,81 +32,81 @@
'connections' => [ 'connections' => [
'sqlite' => [ 'sqlite' => [
'driver' => 'sqlite', 'driver' => 'sqlite',
'url' => env('DB_URL'), 'url' => env('DB_URL'),
'database' => env('DB_DATABASE', database_path('database.sqlite')), 'database' => env('DB_DATABASE', database_path('database.sqlite')),
'prefix' => '', 'prefix' => '',
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
'busy_timeout' => null, 'busy_timeout' => null,
'journal_mode' => null, 'journal_mode' => null,
'synchronous' => null, 'synchronous' => null,
], ],
'mysql' => [ 'mysql' => [
'driver' => 'mysql', 'driver' => 'mysql',
'url' => env('DB_URL'), 'url' => env('DB_URL'),
'host' => env('DB_HOST', '127.0.0.1'), 'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'), 'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'laravel'), 'database' => env('DB_DATABASE', 'laravel'),
'username' => env('DB_USERNAME', 'root'), 'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''), 'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''), 'unix_socket' => env('DB_SOCKET', ''),
'charset' => env('DB_CHARSET', 'utf8mb4'), 'charset' => env('DB_CHARSET', 'utf8mb4'),
'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'), 'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
'prefix' => '', 'prefix' => '',
'prefix_indexes' => true, 'prefix_indexes' => true,
'strict' => true, 'strict' => true,
'engine' => null, 'engine' => null,
'options' => extension_loaded('pdo_mysql') ? array_filter([ 'options' => extension_loaded('pdo_mysql') ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
]) : [], ]) : [],
], ],
'mariadb' => [ 'mariadb' => [
'driver' => 'mariadb', 'driver' => 'mariadb',
'url' => env('DB_URL'), 'url' => env('DB_URL'),
'host' => env('DB_HOST', '127.0.0.1'), 'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'), 'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'laravel'), 'database' => env('DB_DATABASE', 'laravel'),
'username' => env('DB_USERNAME', 'root'), 'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''), 'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''), 'unix_socket' => env('DB_SOCKET', ''),
'charset' => env('DB_CHARSET', 'utf8mb4'), 'charset' => env('DB_CHARSET', 'utf8mb4'),
'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'), 'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
'prefix' => '', 'prefix' => '',
'prefix_indexes' => true, 'prefix_indexes' => true,
'strict' => true, 'strict' => true,
'engine' => null, 'engine' => null,
'options' => extension_loaded('pdo_mysql') ? array_filter([ 'options' => extension_loaded('pdo_mysql') ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
]) : [], ]) : [],
], ],
'pgsql' => [ 'pgsql' => [
'driver' => 'pgsql', 'driver' => 'pgsql',
'url' => env('DB_URL'), 'url' => env('DB_URL'),
'host' => env('DB_HOST', '127.0.0.1'), 'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '5432'), 'port' => env('DB_PORT', '5432'),
'database' => env('DB_DATABASE', 'laravel'), 'database' => env('DB_DATABASE', 'laravel'),
'username' => env('DB_USERNAME', 'root'), 'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''), 'password' => env('DB_PASSWORD', ''),
'charset' => env('DB_CHARSET', 'utf8'), 'charset' => env('DB_CHARSET', 'utf8'),
'prefix' => '', 'prefix' => '',
'prefix_indexes' => true, 'prefix_indexes' => true,
'search_path' => 'public', 'search_path' => 'public',
'sslmode' => 'prefer', 'sslmode' => 'prefer',
], ],
'sqlsrv' => [ 'sqlsrv' => [
'driver' => 'sqlsrv', 'driver' => 'sqlsrv',
'url' => env('DB_URL'), 'url' => env('DB_URL'),
'host' => env('DB_HOST', 'localhost'), 'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', '1433'), 'port' => env('DB_PORT', '1433'),
'database' => env('DB_DATABASE', 'laravel'), 'database' => env('DB_DATABASE', 'laravel'),
'username' => env('DB_USERNAME', 'root'), 'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''), 'password' => env('DB_PASSWORD', ''),
'charset' => env('DB_CHARSET', 'utf8'), 'charset' => env('DB_CHARSET', 'utf8'),
'prefix' => '', 'prefix' => '',
'prefix_indexes' => true, 'prefix_indexes' => true,
// 'encrypt' => env('DB_ENCRYPT', 'yes'), // 'encrypt' => env('DB_ENCRYPT', 'yes'),
// 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'false'), // 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'false'),
@ -126,7 +126,7 @@
*/ */
'migrations' => [ 'migrations' => [
'table' => 'migrations', 'table' => 'migrations',
'update_date_on_publish' => true, 'update_date_on_publish' => true,
], ],
@ -147,24 +147,24 @@
'options' => [ 'options' => [
'cluster' => env('REDIS_CLUSTER', 'redis'), 'cluster' => env('REDIS_CLUSTER', 'redis'),
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
], ],
'default' => [ 'default' => [
'url' => env('REDIS_URL'), 'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'), 'host' => env('REDIS_HOST', '127.0.0.1'),
'username' => env('REDIS_USERNAME'), 'username' => env('REDIS_USERNAME'),
'password' => env('REDIS_PASSWORD'), 'password' => env('REDIS_PASSWORD'),
'port' => env('REDIS_PORT', '6379'), 'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_DB', '0'), 'database' => env('REDIS_DB', '0'),
], ],
'cache' => [ 'cache' => [
'url' => env('REDIS_URL'), 'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'), 'host' => env('REDIS_HOST', '127.0.0.1'),
'username' => env('REDIS_USERNAME'), 'username' => env('REDIS_USERNAME'),
'password' => env('REDIS_PASSWORD'), 'password' => env('REDIS_PASSWORD'),
'port' => env('REDIS_PORT', '6379'), 'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_CACHE_DB', '1'), 'database' => env('REDIS_CACHE_DB', '1'),
], ],

View File

@ -32,28 +32,28 @@
'local' => [ 'local' => [
'driver' => 'local', 'driver' => 'local',
'root' => storage_path('app'), 'root' => storage_path('app'),
'throw' => false, 'throw' => false,
], ],
'public' => [ 'public' => [
'driver' => 'local', 'driver' => 'local',
'root' => storage_path('app/public'), 'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage', 'url' => env('APP_URL').'/storage',
'visibility' => 'public', 'visibility' => 'public',
'throw' => false, 'throw' => false,
], ],
's3' => [ 's3' => [
'driver' => 's3', 'driver' => 's3',
'key' => env('AWS_ACCESS_KEY_ID'), 'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'), 'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION'), 'region' => env('AWS_DEFAULT_REGION'),
'bucket' => env('AWS_BUCKET'), 'bucket' => env('AWS_BUCKET'),
'url' => env('AWS_URL'), 'url' => env('AWS_URL'),
'endpoint' => env('AWS_ENDPOINT'), 'endpoint' => env('AWS_ENDPOINT'),
'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
'throw' => false, 'throw' => false,
], ],
], ],

View File

@ -33,7 +33,7 @@
'deprecations' => [ 'deprecations' => [
'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'), 'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'),
'trace' => env('LOG_DEPRECATIONS_TRACE', false), 'trace' => env('LOG_DEPRECATIONS_TRACE', false),
], ],
/* /*
@ -53,73 +53,73 @@
'channels' => [ 'channels' => [
'stack' => [ 'stack' => [
'driver' => 'stack', 'driver' => 'stack',
'channels' => explode(',', env('LOG_STACK', 'single')), 'channels' => explode(',', env('LOG_STACK', 'single')),
'ignore_exceptions' => false, 'ignore_exceptions' => false,
], ],
'single' => [ 'single' => [
'driver' => 'single', 'driver' => 'single',
'path' => storage_path('logs/laravel.log'), 'path' => storage_path('logs/laravel.log'),
'level' => env('LOG_LEVEL', 'debug'), 'level' => env('LOG_LEVEL', 'debug'),
'replace_placeholders' => true, 'replace_placeholders' => true,
], ],
'daily' => [ 'daily' => [
'driver' => 'daily', 'driver' => 'daily',
'path' => storage_path('logs/laravel.log'), 'path' => storage_path('logs/laravel.log'),
'level' => env('LOG_LEVEL', 'debug'), 'level' => env('LOG_LEVEL', 'debug'),
'days' => env('LOG_DAILY_DAYS', 14), 'days' => env('LOG_DAILY_DAYS', 14),
'replace_placeholders' => true, 'replace_placeholders' => true,
], ],
'slack' => [ 'slack' => [
'driver' => 'slack', 'driver' => 'slack',
'url' => env('LOG_SLACK_WEBHOOK_URL'), 'url' => env('LOG_SLACK_WEBHOOK_URL'),
'username' => env('LOG_SLACK_USERNAME', 'Laravel Log'), 'username' => env('LOG_SLACK_USERNAME', 'Laravel Log'),
'emoji' => env('LOG_SLACK_EMOJI', ':boom:'), 'emoji' => env('LOG_SLACK_EMOJI', ':boom:'),
'level' => env('LOG_LEVEL', 'critical'), 'level' => env('LOG_LEVEL', 'critical'),
'replace_placeholders' => true, 'replace_placeholders' => true,
], ],
'papertrail' => [ 'papertrail' => [
'driver' => 'monolog', 'driver' => 'monolog',
'level' => env('LOG_LEVEL', 'debug'), 'level' => env('LOG_LEVEL', 'debug'),
'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class), 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class),
'handler_with' => [ 'handler_with' => [
'host' => env('PAPERTRAIL_URL'), 'host' => env('PAPERTRAIL_URL'),
'port' => env('PAPERTRAIL_PORT'), 'port' => env('PAPERTRAIL_PORT'),
'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'), 'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'),
], ],
'processors' => [PsrLogMessageProcessor::class], 'processors' => [PsrLogMessageProcessor::class],
], ],
'stderr' => [ 'stderr' => [
'driver' => 'monolog', 'driver' => 'monolog',
'level' => env('LOG_LEVEL', 'debug'), 'level' => env('LOG_LEVEL', 'debug'),
'handler' => StreamHandler::class, 'handler' => StreamHandler::class,
'formatter' => env('LOG_STDERR_FORMATTER'), 'formatter' => env('LOG_STDERR_FORMATTER'),
'with' => [ 'with' => [
'stream' => 'php://stderr', 'stream' => 'php://stderr',
], ],
'processors' => [PsrLogMessageProcessor::class], 'processors' => [PsrLogMessageProcessor::class],
], ],
'syslog' => [ 'syslog' => [
'driver' => 'syslog', 'driver' => 'syslog',
'level' => env('LOG_LEVEL', 'debug'), 'level' => env('LOG_LEVEL', 'debug'),
'facility' => env('LOG_SYSLOG_FACILITY', LOG_USER), 'facility' => env('LOG_SYSLOG_FACILITY', LOG_USER),
'replace_placeholders' => true, 'replace_placeholders' => true,
], ],
'errorlog' => [ 'errorlog' => [
'driver' => 'errorlog', 'driver' => 'errorlog',
'level' => env('LOG_LEVEL', 'debug'), 'level' => env('LOG_LEVEL', 'debug'),
'replace_placeholders' => true, 'replace_placeholders' => true,
], ],
'null' => [ 'null' => [
'driver' => 'monolog', 'driver' => 'monolog',
'handler' => NullHandler::class, 'handler' => NullHandler::class,
], ],

View File

@ -38,14 +38,14 @@
'mailers' => [ 'mailers' => [
'smtp' => [ 'smtp' => [
'transport' => 'smtp', 'transport' => 'smtp',
'url' => env('MAIL_URL'), 'url' => env('MAIL_URL'),
'host' => env('MAIL_HOST', '127.0.0.1'), 'host' => env('MAIL_HOST', '127.0.0.1'),
'port' => env('MAIL_PORT', 2525), 'port' => env('MAIL_PORT', 2525),
'encryption' => env('MAIL_ENCRYPTION', 'tls'), 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
'username' => env('MAIL_USERNAME'), 'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'), 'password' => env('MAIL_PASSWORD'),
'timeout' => null, 'timeout' => null,
'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url(env('APP_URL', 'http://localhost'), PHP_URL_HOST)), 'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url(env('APP_URL', 'http://localhost'), PHP_URL_HOST)),
], ],
@ -67,12 +67,12 @@
'sendmail' => [ 'sendmail' => [
'transport' => 'sendmail', 'transport' => 'sendmail',
'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
], ],
'log' => [ 'log' => [
'transport' => 'log', 'transport' => 'log',
'channel' => env('MAIL_LOG_CHANNEL'), 'channel' => env('MAIL_LOG_CHANNEL'),
], ],
'array' => [ 'array' => [
@ -81,7 +81,7 @@
'failover' => [ 'failover' => [
'transport' => 'failover', 'transport' => 'failover',
'mailers' => [ 'mailers' => [
'smtp', 'smtp',
'log', 'log',
], ],
@ -89,7 +89,7 @@
'roundrobin' => [ 'roundrobin' => [
'transport' => 'roundrobin', 'transport' => 'roundrobin',
'mailers' => [ 'mailers' => [
'ses', 'ses',
'postmark', 'postmark',
], ],
@ -110,7 +110,7 @@
'from' => [ 'from' => [
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
'name' => env('MAIL_FROM_NAME', 'Example'), 'name' => env('MAIL_FROM_NAME', 'Example'),
], ],
]; ];

View File

@ -35,40 +35,40 @@
], ],
'database' => [ 'database' => [
'driver' => 'database', 'driver' => 'database',
'connection' => env('DB_QUEUE_CONNECTION'), 'connection' => env('DB_QUEUE_CONNECTION'),
'table' => env('DB_QUEUE_TABLE', 'jobs'), 'table' => env('DB_QUEUE_TABLE', 'jobs'),
'queue' => env('DB_QUEUE', 'default'), 'queue' => env('DB_QUEUE', 'default'),
'retry_after' => (int) env('DB_QUEUE_RETRY_AFTER', 90), 'retry_after' => (int) env('DB_QUEUE_RETRY_AFTER', 90),
'after_commit' => false, 'after_commit' => false,
], ],
'beanstalkd' => [ 'beanstalkd' => [
'driver' => 'beanstalkd', 'driver' => 'beanstalkd',
'host' => env('BEANSTALKD_QUEUE_HOST', 'localhost'), 'host' => env('BEANSTALKD_QUEUE_HOST', 'localhost'),
'queue' => env('BEANSTALKD_QUEUE', 'default'), 'queue' => env('BEANSTALKD_QUEUE', 'default'),
'retry_after' => (int) env('BEANSTALKD_QUEUE_RETRY_AFTER', 90), 'retry_after' => (int) env('BEANSTALKD_QUEUE_RETRY_AFTER', 90),
'block_for' => 0, 'block_for' => 0,
'after_commit' => false, 'after_commit' => false,
], ],
'sqs' => [ 'sqs' => [
'driver' => 'sqs', 'driver' => 'sqs',
'key' => env('AWS_ACCESS_KEY_ID'), 'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'), 'secret' => env('AWS_SECRET_ACCESS_KEY'),
'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
'queue' => env('SQS_QUEUE', 'default'), 'queue' => env('SQS_QUEUE', 'default'),
'suffix' => env('SQS_SUFFIX'), 'suffix' => env('SQS_SUFFIX'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
'after_commit' => false, 'after_commit' => false,
], ],
'redis' => [ 'redis' => [
'driver' => 'redis', 'driver' => 'redis',
'connection' => env('REDIS_QUEUE_CONNECTION', 'default'), 'connection' => env('REDIS_QUEUE_CONNECTION', 'default'),
'queue' => env('REDIS_QUEUE', 'default'), 'queue' => env('REDIS_QUEUE', 'default'),
'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90), 'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90),
'block_for' => null, 'block_for' => null,
'after_commit' => false, 'after_commit' => false,
], ],
@ -87,7 +87,7 @@
'batching' => [ 'batching' => [
'database' => env('DB_CONNECTION', 'sqlite'), 'database' => env('DB_CONNECTION', 'sqlite'),
'table' => 'job_batches', 'table' => 'job_batches',
], ],
/* /*
@ -104,9 +104,9 @@
*/ */
'failed' => [ 'failed' => [
'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
'database' => env('DB_CONNECTION', 'sqlite'), 'database' => env('DB_CONNECTION', 'sqlite'),
'table' => 'failed_jobs', 'table' => 'failed_jobs',
], ],
]; ];

View File

@ -19,7 +19,7 @@
], ],
'ses' => [ 'ses' => [
'key' => env('AWS_ACCESS_KEY_ID'), 'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'), 'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
], ],
@ -31,7 +31,7 @@
'slack' => [ 'slack' => [
'notifications' => [ 'notifications' => [
'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'), 'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'),
'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'), 'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'),
], ],
], ],

View File

@ -13,14 +13,14 @@ class ContactFactory extends Factory
public function definition(): array public function definition(): array
{ {
$first_name = $this->faker->firstName(); $first_name = $this->faker->firstName();
$last_name = $this->faker->lastName(); $last_name = $this->faker->lastName();
$email = strtolower($first_name.'.'.$last_name).'@example.com'; $email = strtolower($first_name.'.'.$last_name).'@example.com';
return [ return [
'first_name' => $first_name, 'first_name' => $first_name,
'last_name' => $last_name, 'last_name' => $last_name,
'email' => $email, 'email' => $email,
'phone' => $this->faker->phoneNumber(), 'phone' => $this->faker->phoneNumber(),
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
]; ];

View File

@ -12,19 +12,18 @@ class CustomerFactory extends Factory
public function definition() public function definition()
{ {
$company_name = $this->faker->company(); $company_name = $this->faker->company();
$internal_name = explode(',', $company_name); $internal_name = explode(',', $company_name);
$address = $this->faker->address(); $address = $this->faker->address();
return [ return [
'company_name' => $company_name, 'company_name' => $company_name,
'internal_name' => strtolower($internal_name[0]), 'internal_name' => strtolower($internal_name[0]),
'shipping_address' => $address, 'shipping_address' => $address,
'billing_address' => $address, 'billing_address' => $address,
'phone' => $this->faker->phoneNumber(), 'phone' => $this->faker->phoneNumber(),
'created_at' => Carbon::now(),
'created_at' => Carbon::now(), 'updated_at' => Carbon::now(),
'updated_at' => Carbon::now(),
]; ];
} }
} }

View File

@ -15,24 +15,23 @@ class OrderFactory extends Factory
public function definition(): array public function definition(): array
{ {
$order_date = Carbon::today()->subDays(rand(0, 10)); $order_date = Carbon::today()->subDays(rand(0, 10));
$due_date = $order_date->copy()->addDays(rand(9, 15)); $due_date = $order_date->copy()->addDays(rand(9, 15));
return [ return [
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
// 'internal_po' => $this->faker->randomNumber(4, true), 'customer_po' => $this->faker->randomNumber(6, true),
'customer_po' => $this->faker->randomNumber(6, true), 'order_type' => $this->faker->randomElement(OrderType::cases())->value,
'order_type' => $this->faker->randomElement(OrderType::cases())->value, 'order_date' => $order_date,
'order_date' => $order_date, 'due_date' => $due_date,
'due_date' => $due_date, 'status' => $this->faker->randomELement(OrderStatus::cases())->value,
'status' => $this->faker->randomELement(OrderStatus::cases())->value, 'rush' => $this->faker->boolean(10),
'rush' => $this->faker->boolean(10), 'new_art' => $this->faker->boolean(),
'new_art' => $this->faker->boolean(), 'digitizing' => $this->faker->boolean(),
'digitizing' => $this->faker->boolean(), 'repeat' => $this->faker->boolean(),
'repeat' => $this->faker->boolean(), 'purchased_garments' => $this->faker->boolean(),
'purchased_garments' => $this->faker->boolean(),
'customer_supplied_file' => $this->faker->boolean(), 'customer_supplied_file' => $this->faker->boolean(),
'notes' => $this->faker->words(10, true), 'notes' => $this->faker->words(10, true),
]; ];
} }
} }

View File

@ -13,11 +13,11 @@ class OrderProductFactory extends Factory
public function definition(): array public function definition(): array
{ {
return [ return [
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
'sku' => $this->faker->randomElement([$this->faker->randomNumber(4, true), null]), 'sku' => $this->faker->randomElement([$this->faker->randomNumber(4, true), null]),
'product_name' => $this->faker->randomElement(['shirts', 'hats', 'jackets', 'pants', 'tote bags', 'backpacks']), 'product_name' => $this->faker->randomElement(['shirts', 'hats', 'jackets', 'pants', 'tote bags', 'backpacks']),
'color' => $this->faker->randomElement(['black', 'white', 'navy', 'red', 'gold', 'charcoal']), 'color' => $this->faker->randomElement(['black', 'white', 'navy', 'red', 'gold', 'charcoal']),
]; ];
} }
} }

View File

@ -14,11 +14,11 @@ public function definition(): array
{ {
return [ return [
'date_received' => $this->faker->dateTimeBetween('-1 month', 'now'), 'date_received' => $this->faker->dateTimeBetween('-1 month', 'now'),
'order_id' => $this->faker->randomNumber(6), 'order_id' => $this->faker->randomNumber(6),
'amount' => $this->faker->numberBetween(2, 5).' boxes', 'amount' => $this->faker->numberBetween(2, 5).' boxes',
'contents' => $this->faker->numberBetween(2, 60).' '.$this->faker->randomElement(['t-shirts', 'caps', 'jackets', 'pants', 'sweaters']), 'contents' => $this->faker->numberBetween(2, 60).' '.$this->faker->randomElement(['t-shirts', 'caps', 'jackets', 'pants', 'sweaters']),
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
]; ];
} }
} }

View File

@ -13,12 +13,12 @@ class ProductServiceFactory extends Factory
public function definition(): array public function definition(): array
{ {
return [ return [
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
'service_type' => $this->faker->randomElement(['embroidery', 'screen printing', 'dtg', 'vinyl']), 'service_type' => $this->faker->randomElement(['embroidery', 'screen printing', 'dtg', 'vinyl']),
'placement' => $this->faker->randomElement(['l/c', 'c/f', 'f/b', 'r/c']), 'placement' => $this->faker->randomElement(['l/c', 'c/f', 'f/b', 'r/c']),
'setup_amount' => 0, 'setup_amount' => 0,
'amount' => $this->faker->randomNumber(1), 'amount' => $this->faker->randomNumber(1),
'amount_price' => 0, 'amount_price' => 0,
]; ];
} }

View File

@ -15,8 +15,8 @@ public function definition(): array
return [ return [
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
'size' => $this->faker->randomElement(['xs', 's', 'm', 'l', 'xl', '2xl', '3xl']), 'size' => $this->faker->randomElement(['xs', 's', 'm', 'l', 'xl', '2xl', '3xl']),
'amount' => $this->faker->randomNumber(2, false), 'amount' => $this->faker->randomNumber(2, false),
]; ];
} }
} }

View File

@ -15,11 +15,11 @@ public function definition(): array
return [ return [
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
'code' => $this->faker->randomElement(['A', 'B']).$this->faker->randomNumber(4, true), 'code' => $this->faker->randomElement(['A', 'B']).$this->faker->randomNumber(4, true),
'name' => $this->faker->word(), 'name' => $this->faker->word(),
'width' => round($this->faker->randomFloat(2, 0, 10), 1), 'width' => round($this->faker->randomFloat(2, 0, 10), 1),
'height' => round($this->faker->randomFloat(2, 0, 10), 1), 'height' => round($this->faker->randomFloat(2, 0, 10), 1),
'unit' => 'inch', 'unit' => 'inch',
]; ];
} }
} }

View File

@ -13,16 +13,16 @@ class ShippingEntryFactory extends Factory
public function definition(): array public function definition(): array
{ {
return [ return [
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
'courier' => $this->faker->randomElement(['UPS', 'Purolator', 'FreightCom', 'E-Shipper', 'ACE']), 'courier' => $this->faker->randomElement(['UPS', 'Purolator', 'FreightCom', 'E-Shipper', 'ACE']),
'contact' => $this->faker->randomElement(['courier.com', '+1 604 123 4567']), 'contact' => $this->faker->randomElement(['courier.com', '+1 604 123 4567']),
'account_title' => $this->faker->word, 'account_title' => $this->faker->word,
'account_username' => 'username', 'account_username' => 'username',
'account_password' => 'password', 'account_password' => 'password',
'info_needed' => $this->faker->words(3, true), 'info_needed' => $this->faker->words(3, true),
'notify' => 'someone@account.com', 'notify' => 'someone@account.com',
'notes' => $this->faker->randomElement(['', '', '', 'Some really long text to simulate a note being put here']), 'notes' => $this->faker->randomElement(['', '', '', 'Some really long text to simulate a note being put here']),
]; ];
} }
} }

View File

@ -24,11 +24,11 @@ class UserFactory extends Factory
public function definition(): array public function definition(): array
{ {
return [ return [
'name' => fake()->name(), 'name' => fake()->name(),
'email' => fake()->unique()->safeEmail(), 'email' => fake()->unique()->safeEmail(),
'email_verified_at' => now(), 'email_verified_at' => now(),
'password' => Hash::make('password'), 'password' => Hash::make('password'),
'remember_token' => Str::random(10), 'remember_token' => Str::random(10),
]; ];
} }

View File

@ -28,63 +28,63 @@ public function run(): void
->create(); ->create();
Customer::factory([ Customer::factory([
'company_name' => 'Genumark', 'company_name' => 'Genumark',
'internal_name' => 'genumark', 'internal_name' => 'genumark',
'shipping_address' => '', 'shipping_address' => '',
'billing_address' => '', 'billing_address' => '',
]) ])
->has(Contact::factory([ ->has(Contact::factory([
'first_name' => 'Tammy', 'first_name' => 'Tammy',
'last_name' => 'Bookbinder', 'last_name' => 'Bookbinder',
'email' => 'tbookbinder@genumark.com', 'email' => 'tbookbinder@genumark.com',
'phone' => '+1 778 229 5668', 'phone' => '+1 778 229 5668',
])) ]))
->has(Contact::factory([ ->has(Contact::factory([
'first_name' => 'Kathlyn', 'first_name' => 'Kathlyn',
'last_name' => 'Wood', 'last_name' => 'Wood',
'email' => 'kwood@genumark.com', 'email' => 'kwood@genumark.com',
'phone' => '+1 604 294 2376', 'phone' => '+1 604 294 2376',
'notes' => 'Always CC, unless SOF order', 'notes' => 'Always CC, unless SOF order',
])) ]))
->has(Contact::factory([ ->has(Contact::factory([
'first_name' => 'Jane', 'first_name' => 'Jane',
'last_name' => 'Wellman', 'last_name' => 'Wellman',
'email' => 'jwellman@genumark.com', 'email' => 'jwellman@genumark.com',
'phone' => '+1 604 742 5584', 'phone' => '+1 604 742 5584',
'notes' => 'Deals with SOF orders', 'notes' => 'Deals with SOF orders',
])) ]))
->has(Contact::factory([ ->has(Contact::factory([
'first_name' => 'Trisha', 'first_name' => 'Trisha',
'last_name' => 'Miller', 'last_name' => 'Miller',
'email' => 'tmiller@genumark.com', 'email' => 'tmiller@genumark.com',
'phone' => '+1 604 802 8486', 'phone' => '+1 604 802 8486',
])) ]))
->has(Contact::factory([ ->has(Contact::factory([
'first_name' => 'Brenda', 'first_name' => 'Brenda',
'last_name' => 'Kuepfer', 'last_name' => 'Kuepfer',
'email' => 'bkuepfer@genumark.com', 'email' => 'bkuepfer@genumark.com',
'phone' => '+1 604 305 5002', 'phone' => '+1 604 305 5002',
])) ]))
->has(PackingSlip::factory(20)) ->has(PackingSlip::factory(20))
->has(ShippingEntry::factory([ ->has(ShippingEntry::factory([
'account_title' => 'Genumark', 'account_title' => 'Genumark',
'courier' => 'UPS CampusShip', 'courier' => 'UPS CampusShip',
'contact' => 'https://www.ups.com/lasso/login', 'contact' => 'https://www.ups.com/lasso/login',
'account_username' => 'GenumarkTopNotch', 'account_username' => 'GenumarkTopNotch',
'account_password' => 'TopNotch@13579', 'account_password' => 'TopNotch@13579',
'info_needed' => 'Put PO on box', 'info_needed' => 'Put PO on box',
'notify' => 'Various reps, CC Kathlyn Wood', 'notify' => 'Various reps, CC Kathlyn Wood',
'notes' => 'For Save On Foods orders, see Genumark SOF', 'notes' => 'For Save On Foods orders, see Genumark SOF',
])) ]))
->has(ShippingEntry::factory([ ->has(ShippingEntry::factory([
'account_title' => 'Genumark Save-On-Foods', 'account_title' => 'Genumark Save-On-Foods',
'courier' => 'UPS CampusShip', 'courier' => 'UPS CampusShip',
'contact' => 'https://www.ups.com/lasso/login', 'contact' => 'https://www.ups.com/lasso/login',
'account_username' => 'GenumarkTopNotch', 'account_username' => 'GenumarkTopNotch',
'account_password' => 'TopNotch@13579', 'account_password' => 'TopNotch@13579',
'info_needed' => 'Put PO on box', 'info_needed' => 'Put PO on box',
'notify' => 'Jane Wellman', 'notify' => 'Jane Wellman',
'notes' => 'Don\'t CC Kathlyn for SOF orders', 'notes' => 'Don\'t CC Kathlyn for SOF orders',
])) ]))
->has(Order::factory(10)) ->has(Order::factory(10))
->create(); ->create();

View File

@ -18,7 +18,7 @@ public function run(): void
]); ]);
User::factory()->create([ User::factory()->create([
'name' => 'Test User', 'name' => 'Test User',
'email' => 'test@example.com', 'email' => 'test@example.com',
]); ]);
} }

View File

@ -4,7 +4,8 @@
"binary_operator_spaces": { "binary_operator_spaces": {
"default": "single_space", "default": "single_space",
"operators": { "operators": {
"=>": "align_single_space_minimal" "=>": "align_single_space_minimal",
"=": "align_single_space_minimal"
} }
} }
} }

View File

@ -1,7 +0,0 @@
<div>
<h1>{{ $count }}</h1>
<button wire:click="increment">+</button>
<button wire:click="decrement">-</button>
</div>