roundly-consulting/certificates-for-laravel
Certificates for Laravel helps you generate, store, and manage SSL/TLS certificates directly from your Laravel app. It offers a clean API for issuance, renewal, validation, and local development workflows, simplifying certificate handling without leaving PHP.
src/Models for the base models;database/factories for factory classes and how they resolve $model.// config/package.php (placeholder key names)
'models' => [
'thing' => App\Models\CustomThing::class,
],
config(['package.models.thing' => CustomThing::class]);
$thing = \Vendor\Package\Database\Factories\ThingFactory::new()->create();
$this->assertInstanceOf(CustomThing::class, $thing);
public function test_package_factory_uses_host_model(): void
{
config(['package.models.thing' => CustomThing::class]);
$thing = ThingFactory::new()->create();
$this->assertInstanceOf(CustomThing::class, $thing);
}
config() calls. Ensure it runs before package factories are used.php artisan config:clear
A cached config file can make a model swap appear broken even on 1.1.3.
$model elsewhere.get_class($model) and by inspecting the factory’s resolved model class. Add a temporary assertion in the test rather than relying on database rows alone.How can I help you explore Laravel packages today?