style updates

This commit is contained in:
Mark Gregory
2026-06-23 13:39:02 +01:00
parent e79cadc7f8
commit 3be4ff590f
129 changed files with 482 additions and 404 deletions
@@ -15,7 +15,7 @@ class PlatformServiceProvider extends ServiceProvider
*/
public function register(): void
{
$this->mergeConfigFrom(__DIR__.'/../config/platform.php', 'platform');
$this->mergeConfigFrom(__DIR__ . '/../config/platform.php', 'platform');
}
/**
@@ -23,10 +23,10 @@ class PlatformServiceProvider extends ServiceProvider
*/
public function boot(): void
{
$this->loadViewsFrom(__DIR__.'/../resources/views', 'platform');
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
$this->loadViewsFrom(__DIR__ . '/../resources/views', 'platform');
$this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
Route::middleware('web')->group(__DIR__.'/../routes/web.php');
Route::middleware('web')->group(__DIR__ . '/../routes/web.php');
app('router')->aliasMiddleware('tenant.assigned', EnsureTenantAssigned::class);
app('router')->aliasMiddleware('tenant.licensed', EnsureLicensedTenant::class);
@@ -97,7 +97,7 @@ class PlatformPriceController extends Controller
private function validatedPriceData(Request $request, ?PlatformPrice $price = null): array
{
$data = $request->validate([
'code' => ['nullable', 'string', 'max:40', 'unique:platform_prices,code,'.($price?->id ?? 'NULL')],
'code' => ['nullable', 'string', 'max:40', 'unique:platform_prices,code,' . ($price?->id ?? 'NULL')],
'name' => ['required', 'string', 'max:255'],
'strapline' => ['nullable', 'string', 'max:255'],
'description' => ['nullable', 'string', 'max:2000'],
@@ -32,7 +32,7 @@ class StripeWebhookController extends Controller
'description' => 'Stripe payment received',
'paid_at' => now(),
'metadata' => $intent,
]
],
);
}
}
+1 -1
View File
@@ -28,7 +28,7 @@ class LicenseKey extends Model
public static function issueFor(Company $company, string $label, string $plan = 'standard', int $maxUsers = 10): string
{
$plainKey = 'WMS-'.Str::upper(Str::random(32));
$plainKey = 'WMS-' . Str::upper(Str::random(32));
self::create([
'company_id' => $company->id,
@@ -48,7 +48,7 @@ class PlatformPrice extends Model
'gbp' => '£',
'eur' => '€',
'usd' => '$',
default => strtoupper($this->currency).' ',
default => strtoupper($this->currency) . ' ',
};
}
@@ -61,7 +61,7 @@ class PlatformPrice extends Model
return '—';
}
return $this->currencySymbol().number_format($amount / 100, 2);
return $this->currencySymbol() . number_format($amount / 100, 2);
}
/**
@@ -29,7 +29,7 @@ class PlatformSeeder extends Seeder
'timezone' => 'Europe/London',
'is_system_company' => true,
'billing_email' => 'mark.gregory@mpba.co.uk',
]
],
);
$user = User::updateOrCreate(
@@ -55,7 +55,7 @@ class PlatformSeeder extends Seeder
'is_company_admin' => true,
'status' => 'active',
'email_verified_at' => now(),
]
],
);
$user->assignRole($role);
$warehouse = Warehouse::firstOrNew([
@@ -72,7 +72,7 @@ class PlatformSeeder extends Seeder
WarehouseValidationRule::updateOrCreate(
['warehouse_id' => $warehouse->id, 'rule_key' => 'stock.location.required'],
['name' => 'Stock location required', 'severity' => 'error', 'is_active' => true, 'configuration' => ['required' => true]]
['name' => 'Stock location required', 'severity' => 'error', 'is_active' => true, 'configuration' => ['required' => true]],
);
}
}