repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/DomainResourceMakeCommand.php
src/Commands/DomainResourceMakeCommand.php
<?php namespace Lunarstorm\LaravelDDD\Commands; use Illuminate\Foundation\Console\ResourceMakeCommand; use Lunarstorm\LaravelDDD\Commands\Concerns\HasDomainStubs; use Lunarstorm\LaravelDDD\Commands\Concerns\ResolvesDomainFromInput; class DomainResourceMakeCommand extends ResourceMakeCommand { use HasDomainStubs,...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/DomainRuleMakeCommand.php
src/Commands/DomainRuleMakeCommand.php
<?php namespace Lunarstorm\LaravelDDD\Commands; use Illuminate\Foundation\Console\RuleMakeCommand; use Lunarstorm\LaravelDDD\Commands\Concerns\HasDomainStubs; use Lunarstorm\LaravelDDD\Commands\Concerns\ResolvesDomainFromInput; class DomainRuleMakeCommand extends RuleMakeCommand { use HasDomainStubs, Res...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/DomainJobMakeCommand.php
src/Commands/DomainJobMakeCommand.php
<?php namespace Lunarstorm\LaravelDDD\Commands; use Illuminate\Foundation\Console\JobMakeCommand; use Lunarstorm\LaravelDDD\Commands\Concerns\HasDomainStubs; use Lunarstorm\LaravelDDD\Commands\Concerns\ResolvesDomainFromInput; class DomainJobMakeCommand extends JobMakeCommand { use HasDomainStubs, Resolv...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/DomainConsoleMakeCommand.php
src/Commands/DomainConsoleMakeCommand.php
<?php namespace Lunarstorm\LaravelDDD\Commands; use Illuminate\Foundation\Console\ConsoleMakeCommand; use Lunarstorm\LaravelDDD\Commands\Concerns\HasDomainStubs; use Lunarstorm\LaravelDDD\Commands\Concerns\ResolvesDomainFromInput; class DomainConsoleMakeCommand extends ConsoleMakeCommand { use HasDomainStubs, ...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/DomainObserverMakeCommand.php
src/Commands/DomainObserverMakeCommand.php
<?php namespace Lunarstorm\LaravelDDD\Commands; use Illuminate\Foundation\Console\ObserverMakeCommand; use Lunarstorm\LaravelDDD\Commands\Concerns\HasDomainStubs; use Lunarstorm\LaravelDDD\Commands\Concerns\ResolvesDomainFromInput; class DomainObserverMakeCommand extends ObserverMakeCommand { use HasDomainStubs,...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/DomainDtoMakeCommand.php
src/Commands/DomainDtoMakeCommand.php
<?php namespace Lunarstorm\LaravelDDD\Commands; use Lunarstorm\LaravelDDD\Commands\Concerns\HasDomainStubs; class DomainDtoMakeCommand extends DomainGeneratorCommand { use HasDomainStubs; protected $name = 'ddd:dto'; /** * The console command description. * * @var string */ prot...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/DomainCastMakeCommand.php
src/Commands/DomainCastMakeCommand.php
<?php namespace Lunarstorm\LaravelDDD\Commands; use Illuminate\Foundation\Console\CastMakeCommand; use Lunarstorm\LaravelDDD\Commands\Concerns\HasDomainStubs; use Lunarstorm\LaravelDDD\Commands\Concerns\ResolvesDomainFromInput; class DomainCastMakeCommand extends CastMakeCommand { use HasDomainStubs, Res...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/DomainEnumMakeCommand.php
src/Commands/DomainEnumMakeCommand.php
<?php namespace Lunarstorm\LaravelDDD\Commands; use Illuminate\Foundation\Console\EnumMakeCommand; use Lunarstorm\LaravelDDD\Commands\Concerns\HasDomainStubs; use Lunarstorm\LaravelDDD\Commands\Concerns\ResolvesDomainFromInput; class DomainEnumMakeCommand extends EnumMakeCommand { use HasDomainStubs, Res...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/OptimizeCommand.php
src/Commands/OptimizeCommand.php
<?php namespace Lunarstorm\LaravelDDD\Commands; use Illuminate\Console\Command; use Lunarstorm\LaravelDDD\Facades\Autoload; use Lunarstorm\LaravelDDD\Support\DomainMigration; class OptimizeCommand extends Command { protected $name = 'ddd:optimize'; protected $description = 'Cache auto-discovered domain obje...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/DomainListCommand.php
src/Commands/DomainListCommand.php
<?php namespace Lunarstorm\LaravelDDD\Commands; use Illuminate\Console\Command; use Lunarstorm\LaravelDDD\Support\Domain; use Lunarstorm\LaravelDDD\Support\DomainResolver; use Lunarstorm\LaravelDDD\Support\Path; use function Laravel\Prompts\table; class DomainListCommand extends Command { protected $name = 'ddd...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/DomainFactoryMakeCommand.php
src/Commands/DomainFactoryMakeCommand.php
<?php namespace Lunarstorm\LaravelDDD\Commands; use Illuminate\Database\Console\Factories\FactoryMakeCommand; use Lunarstorm\LaravelDDD\Commands\Concerns\HasDomainStubs; use Lunarstorm\LaravelDDD\Commands\Concerns\InteractsWithStubs; use Lunarstorm\LaravelDDD\Commands\Concerns\ResolvesDomainFromInput; class DomainFa...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/DomainActionMakeCommand.php
src/Commands/DomainActionMakeCommand.php
<?php namespace Lunarstorm\LaravelDDD\Commands; use Lunarstorm\LaravelDDD\Commands\Concerns\HasDomainStubs; class DomainActionMakeCommand extends DomainGeneratorCommand { use HasDomainStubs; protected $name = 'ddd:action'; /** * The console command description. * * @var string */ ...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/DomainTraitMakeCommand.php
src/Commands/DomainTraitMakeCommand.php
<?php namespace Lunarstorm\LaravelDDD\Commands; use Illuminate\Foundation\Console\TraitMakeCommand; use Lunarstorm\LaravelDDD\Commands\Concerns\HasDomainStubs; use Lunarstorm\LaravelDDD\Commands\Concerns\ResolvesDomainFromInput; class DomainTraitMakeCommand extends TraitMakeCommand { use HasDomainStubs, ...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/DomainInterfaceMakeCommand.php
src/Commands/DomainInterfaceMakeCommand.php
<?php namespace Lunarstorm\LaravelDDD\Commands; use Illuminate\Foundation\Console\InterfaceMakeCommand; use Lunarstorm\LaravelDDD\Commands\Concerns\HasDomainStubs; use Lunarstorm\LaravelDDD\Commands\Concerns\ResolvesDomainFromInput; class DomainInterfaceMakeCommand extends InterfaceMakeCommand { use HasDomainStu...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/DomainValueObjectMakeCommand.php
src/Commands/DomainValueObjectMakeCommand.php
<?php namespace Lunarstorm\LaravelDDD\Commands; use Lunarstorm\LaravelDDD\Commands\Concerns\HasDomainStubs; class DomainValueObjectMakeCommand extends DomainGeneratorCommand { use HasDomainStubs; protected $name = 'ddd:value'; /** * The console command description. * * @var string *...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/OptimizeClearCommand.php
src/Commands/OptimizeClearCommand.php
<?php namespace Lunarstorm\LaravelDDD\Commands; use Illuminate\Console\Command; use Lunarstorm\LaravelDDD\Support\DomainCache; class OptimizeClearCommand extends Command { protected $name = 'ddd:clear'; protected $description = 'Clear cached domain autoloaded objects.'; protected function configure() ...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/PublishCommand.php
src/Commands/PublishCommand.php
<?php namespace Lunarstorm\LaravelDDD\Commands; use Illuminate\Console\Command; use Symfony\Component\Console\Input\InputOption; use function Laravel\Prompts\multiselect; class PublishCommand extends Command { public $name = 'ddd:publish'; protected $description = 'Publish package resources'; protecte...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/Migration/BaseMigrateMakeCommand.php
src/Commands/Migration/BaseMigrateMakeCommand.php
<?php namespace Lunarstorm\LaravelDDD\Commands\Migration; use Illuminate\Database\Console\Migrations\MigrateMakeCommand; use Symfony\Component\Console\Input\InputOption; class BaseMigrateMakeCommand extends MigrateMakeCommand { protected $signature = null; protected function getArguments() { ret...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/Migration/DomainMigrateMakeCommand.php
src/Commands/Migration/DomainMigrateMakeCommand.php
<?php namespace Lunarstorm\LaravelDDD\Commands\Migration; use Lunarstorm\LaravelDDD\Commands\Concerns\ResolvesDomainFromInput; use Lunarstorm\LaravelDDD\Support\Path; class DomainMigrateMakeCommand extends BaseMigrateMakeCommand { use ResolvesDomainFromInput; protected $name = 'ddd:migration'; /** ...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/Concerns/InteractsWithStubs.php
src/Commands/Concerns/InteractsWithStubs.php
<?php namespace Lunarstorm\LaravelDDD\Commands\Concerns; trait InteractsWithStubs { protected function fillPlaceholder($stub, $placeholder, $value) { return str_replace(["{{$placeholder}}", "{{ $placeholder }}"], $value, $stub); } protected function preparePlaceholders(): array { ...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/Concerns/QualifiesDomainModels.php
src/Commands/Concerns/QualifiesDomainModels.php
<?php namespace Lunarstorm\LaravelDDD\Commands\Concerns; trait QualifiesDomainModels { protected function qualifyModel(string $model) { if ($domain = $this->blueprint->domain) { $domainModel = $domain->model($model); return $domainModel->fullyQualifiedName; } ...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/Concerns/ResolvesDomainFromInput.php
src/Commands/Concerns/ResolvesDomainFromInput.php
<?php namespace Lunarstorm\LaravelDDD\Commands\Concerns; use Illuminate\Support\Str; use Lunarstorm\LaravelDDD\Support\Domain; use Lunarstorm\LaravelDDD\Support\DomainResolver; use Lunarstorm\LaravelDDD\Support\GeneratorBlueprint; use Symfony\Component\Console\Input\InputOption; use function Laravel\Prompts\suggest;...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/Concerns/HandleHooks.php
src/Commands/Concerns/HandleHooks.php
<?php namespace Lunarstorm\LaravelDDD\Commands\Concerns; trait HandleHooks { protected function beforeHandle() { // } protected function afterHandle() { // } /** * Handle the command, with before and after hooks. * * @return bool|null|void */ publi...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/Concerns/HasDomainStubs.php
src/Commands/Concerns/HasDomainStubs.php
<?php namespace Lunarstorm\LaravelDDD\Commands\Concerns; use Illuminate\Support\Str; use Lunarstorm\LaravelDDD\Facades\DDD; trait HasDomainStubs { protected static $usingPublishedStub = false; protected function usingPublishedStub($usingPublishedStub = true) { static::$usingPublishedStub = $usin...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/Concerns/HasGeneratorBlueprint.php
src/Commands/Concerns/HasGeneratorBlueprint.php
<?php namespace Lunarstorm\LaravelDDD\Commands\Concerns; use Lunarstorm\LaravelDDD\Support\GeneratorBlueprint; trait HasGeneratorBlueprint { protected ?GeneratorBlueprint $blueprint = null; }
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Commands/Concerns/ForwardsToDomainCommands.php
src/Commands/Concerns/ForwardsToDomainCommands.php
<?php namespace Lunarstorm\LaravelDDD\Commands\Concerns; use Illuminate\Support\Str; trait ForwardsToDomainCommands { public function call($command, array $arguments = []) { $subfolder = Str::contains($this->getNameInput(), '/') ? Str::beforeLast($this->getNameInput(), '/') : ...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/src/Events/DomainMigrationsPruned.php
src/Events/DomainMigrationsPruned.php
<?php namespace Lunarstorm\LaravelDDD\Events; use Illuminate\Database\Events\MigrationsPruned; class DomainMigrationsPruned extends MigrationsPruned {}
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/BootsTestApplication.php
tests/BootsTestApplication.php
<?php namespace Lunarstorm\LaravelDDD\Tests; trait BootsTestApplication {}
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Pest.php
tests/Pest.php
<?php use Lunarstorm\LaravelDDD\Tests\TestCase; uses(TestCase::class)->in(__DIR__); function skipOnLaravelVersionsBelow($minimumVersion) { $version = app()->version(); if (version_compare($version, $minimumVersion, '<')) { test()->markTestSkipped("Only available on Laravel {$minimumVersion}+ (Curren...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Expectations.php
tests/Expectations.php
<?php use Illuminate\Support\Facades\Artisan; use Lunarstorm\LaravelDDD\Support\Path; use function PHPUnit\Framework\assertMatchesRegularExpression; expect()->extend('toMatchRegularExpression', function ($pattern, string $message = '') { assertMatchesRegularExpression($pattern, $this->value, $message); retu...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/TestCase.php
tests/TestCase.php
<?php namespace Lunarstorm\LaravelDDD\Tests; use Illuminate\Contracts\Config\Repository; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\File; use Lunarstorm\LaravelDDD\LaravelDDDServiceProvider; use Lunarstorm\Lara...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/ConfigTest.php
tests/ConfigTest.php
<?php use Illuminate\Support\Facades\Config; use Lunarstorm\LaravelDDD\Support\DomainResolver; it('can customize the domain path via ddd.domain_path', function () { $path = fake()->word(); Config::set('ddd.domain_path', $path); expect(DomainResolver::domainPath())->toEqual($path); }); it('can customize...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Migration/MigrationPruneTest.php
tests/Migration/MigrationPruneTest.php
<?php use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Event; use Lunarstorm\LaravelDDD\Events\DomainMigrationsPruned; use Lunarstorm\LaravelDDD\Support\Path; it('prunes domain migrations when schema:dump --prune is called', function () { $this->setupTestApplication(); Event::fake([Doma...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Fixtures/Enums/Feature.php
tests/Fixtures/Enums/Feature.php
<?php namespace Lunarstorm\LaravelDDD\Tests\Fixtures\Enums; enum Feature: string { case PromptForMissingInput = '9.49.0'; case IncludeFilepathInGeneratorCommandOutput = '9.32.0'; case Laravel11 = '11.0.0'; case LaravelPromptsPackage = '10.17'; case LaravelPackageOptimizeCommands = '11.27.1'; c...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Support/ResolveLayerTest.php
tests/Support/ResolveLayerTest.php
<?php use Illuminate\Support\Facades\Config; use Lunarstorm\LaravelDDD\Support\DomainResolver; use Lunarstorm\LaravelDDD\Support\Path; beforeEach(function () { Config::set('ddd.domain_path', 'src/Domain'); Config::set('ddd.domain_namespace', 'Domain'); $this->setupTestApplication(); }); it('can resolve ...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Support/CacheTest.php
tests/Support/CacheTest.php
<?php use Illuminate\Support\Facades\File; use Lunarstorm\LaravelDDD\Support\DomainCache; beforeEach(function () { $cacheDirectory = config('ddd.cache_directory', 'bootstrap/cache/ddd'); File::delete(glob(base_path("{$cacheDirectory}/ddd-*.php"))); }); it('can cache', function ($key, $value) { expect(Dom...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Support/DomainResolverTest.php
tests/Support/DomainResolverTest.php
<?php use Lunarstorm\LaravelDDD\Support\DomainResolver; beforeEach(function () { $this->artisan('ddd:model', [ 'name' => 'Invoice', '--domain' => 'Invoicing', ]); $this->artisan('ddd:dto', [ 'name' => 'CustomerProfile', '--domain' => 'Customer', ]); $this->artisan...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Support/BlueprintTest.php
tests/Support/BlueprintTest.php
<?php use Lunarstorm\LaravelDDD\Support\GeneratorBlueprint; beforeEach(function () { config()->set([ 'ddd.domain_path' => 'src/Domain', 'ddd.domain_namespace' => 'Domain', 'ddd.application_namespace' => 'Application', 'ddd.application_path' => 'src/Application', 'ddd.applic...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Support/AutoloaderTest.php
tests/Support/AutoloaderTest.php
<?php use Lunarstorm\LaravelDDD\Support\AutoloadManager; use Lunarstorm\LaravelDDD\Support\Path; beforeEach(function () { $this->setupTestApplication(); }); beforeEach(function () { config([ 'ddd.domain_path' => 'src/Domain', 'ddd.domain_namespace' => 'Domain', 'ddd.application_namesp...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Support/DomainTest.php
tests/Support/DomainTest.php
<?php use Illuminate\Support\Facades\Config; use Lunarstorm\LaravelDDD\Support\Domain; use Lunarstorm\LaravelDDD\Support\Path; it('can initialize a domain', function ($domainName, $subdomainName) { $domain = new Domain($domainName, $subdomainName); expect($domain) ->domain->toBe($domainName) ...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Support/ResolveObjectSchemaUsingTest.php
tests/Support/ResolveObjectSchemaUsingTest.php
<?php use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Config; use Lunarstorm\LaravelDDD\Facades\DDD; use Lunarstorm\LaravelDDD\ValueObjects\CommandContext; use Lunarstorm\LaravelDDD\ValueObjects\ObjectSchema; beforeEach(function () { $this->setupTestApplication(); Config::set('ddd.doma...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Datasets/Models.php
tests/Datasets/Models.php
<?php dataset('makeModelInputs', [ 'apple' => ['apple', 'Apple'], 'Apple' => ['Apple', 'Apple'], 'appleBottom' => ['appleBottom', 'AppleBottom'], 'AppleBottom' => ['AppleBottom', 'AppleBottom'], 'apple-bottom' => ['apple-bottom', 'AppleBottom'], ]);
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Datasets/GeneratorSchemas.php
tests/Datasets/GeneratorSchemas.php
<?php dataset('generatorSchemas', [ 'ddd:model Invoicing:Invoice' => [ 'ddd:model', 'Invoice', 'Invoicing', [ 'name' => 'Invoice', 'namespace' => 'Domain\Invoicing\Models', 'fullyQualifiedName' => 'Domain\Invoicing\Models\Invoice', 'pa...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Datasets/ViewModels.php
tests/Datasets/ViewModels.php
<?php dataset('makeViewModelInputs', [ 'summaryViewModel' => ['summaryViewModel', 'SummaryViewModel'], 'ShowInvoiceViewModel' => ['ShowInvoiceViewModel', 'ShowInvoiceViewModel'], 'show-invoice-view-model' => ['show-invoice-view-model', 'ShowInvoiceViewModel'], ]);
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Datasets/Actions.php
tests/Datasets/Actions.php
<?php dataset('makeActionInputs', [ 'GenerateInvoice' => ['GenerateInvoice', 'GenerateInvoice'], 'generateInvoice' => ['generateInvoice', 'GenerateInvoice'], 'generate-invoice' => ['generate-invoice', 'GenerateInvoice'], 'PublishPendingPosts' => ['PublishPendingPosts', 'PublishPendingPosts'], 'publ...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Datasets/DataTransferObjects.php
tests/Datasets/DataTransferObjects.php
<?php dataset('makeDtoInputs', [ 'payload' => ['payload', 'Payload'], 'Payload' => ['Payload', 'Payload'], 'invoicePayload' => ['invoicePayload', 'InvoicePayload'], 'InvoicePayload' => ['InvoicePayload', 'InvoicePayload'], 'invoice-payload' => ['invoice-payload', 'InvoicePayload'], ]);
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Datasets/Config.php
tests/Datasets/Config.php
<?php dataset('configUpgrades', [ '0.10.0 config' => [ __DIR__.'/resources/config.0.10.0.php', // Expected net result [ 'domain_path' => 'src/CustomDomainFolder', 'domain_namespace' => 'CustomDomainNamespace', 'namespaces' => [ 'model' =>...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Datasets/Domains.php
tests/Datasets/Domains.php
<?php dataset('domainPaths', [ ['src/Domain', 'Domain'], ['src/Domains', 'Domains'], ['src/Domains', 'Domain'], ['Custom/PathTo/Domain', 'Domain'], ]); dataset('domainSubdomain', [ // Domain, Subdomain ['Customer', 'Reporting'], ['Customer', null], ]);
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Datasets/resources/config.0.10.0.php
tests/Datasets/resources/config.0.10.0.php
<?php return [ /* |-------------------------------------------------------------------------- | Domain Path |-------------------------------------------------------------------------- | | The path to the domain folder relative to the application root. | */ 'domain_path' => 'src/Cust...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Autoload/FactoryTest.php
tests/Autoload/FactoryTest.php
<?php use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Facades\Artisan; use Lunarstorm\LaravelDDD\Support\AutoloadManager; use Lunarstorm\LaravelDDD\Support\DomainCache; use Lunarstorm\LaravelDDD\Tests\BootsTestApplication; uses(BootsTestApplication::class); beforeEach(function () { $th...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Autoload/PolicyTest.php
tests/Autoload/PolicyTest.php
<?php use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Gate; use Lunarstorm\LaravelDDD\Support\AutoloadManager; use Lunarstorm\LaravelDDD\Support\DomainCache; use Lunarstorm\LaravelDDD\Tests\BootsTestApplication; uses(BootsTestApplication::class); beforeEach(function () { $this->policies = ...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Autoload/IgnoreTest.php
tests/Autoload/IgnoreTest.php
<?php use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Config; use Illuminate\Support\Str; use Lunarstorm\LaravelDDD\Facades\DDD; use Lunarstorm\LaravelDDD\Support\DomainCache; use Lunarstorm\LaravelDDD\Tests\BootsTestApplication; use Symfony\Component\Finder\SplFileInfo; uses(BootsTestApplicati...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Autoload/CommandTest.php
tests/Autoload/CommandTest.php
<?php use Illuminate\Support\Facades\Artisan; use Lunarstorm\LaravelDDD\Support\AutoloadManager; use Lunarstorm\LaravelDDD\Support\DomainCache; use Lunarstorm\LaravelDDD\Tests\BootsTestApplication; uses(BootsTestApplication::class); beforeEach(function () { $this->commands = [ 'application:sync' => 'Appl...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Autoload/ProviderTest.php
tests/Autoload/ProviderTest.php
<?php use Illuminate\Support\Facades\Artisan; use Lunarstorm\LaravelDDD\Support\AutoloadManager; use Lunarstorm\LaravelDDD\Support\DomainCache; use Lunarstorm\LaravelDDD\Tests\BootsTestApplication; uses(BootsTestApplication::class); beforeEach(function () { $this->providers = [ 'Application\Providers\App...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Config/ManagerTest.php
tests/Config/ManagerTest.php
<?php use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\File; use Lunarstorm\LaravelDDD\Facades\DDD; beforeEach(function () { $this->cleanSlate(); $this->latestConfig = require DDD::packagePath('config/ddd.php'); }); afterEach(function () { $this->setupTestApplication(); Artisan...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Config/resources/config.sparse.php
tests/Config/resources/config.sparse.php
<?php return [ 'domain_path' => 'src/CustomDomainFolder', 'domain_namespace' => 'CustomDomainNamespace', 'application_objects' => [ 'keepthis', ], 'namespaces' => [ 'model' => 'CustomModels', 'data_transfer_object' => 'CustomData', 'view_model' => 'CustomViewModels',...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/ValueObject/DomainObjectTest.php
tests/ValueObject/DomainObjectTest.php
<?php use Lunarstorm\LaravelDDD\Support\DomainResolver; use Lunarstorm\LaravelDDD\Support\Path; use Lunarstorm\LaravelDDD\ValueObjects\DomainObject; it('can create a domain object from resolvable class names', function (string $class, $domain, $relativeNamespace, $objectName) { $domainObject = DomainObject::fromC...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Setup/PublishTest.php
tests/Setup/PublishTest.php
<?php use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\File; it('can publish config file', function () { $expectedPath = base_path('config/ddd.php'); if (file_exists($expectedPath)) { unlink($expectedPath); } expect(file_exists($expectedPath))->toBeFalse(); Artisan...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/app/Http/Controllers/Controller.php
tests/.skeleton/app/Http/Controllers/Controller.php
<?php namespace App\Http\Controllers; abstract class Controller { // }
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/app/Models/User.php
tests/.skeleton/app/Models/User.php
<?php namespace App\Models; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; class User extends Authenticatable implement...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/app/Models/Post.php
tests/.skeleton/app/Models/Post.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Post extends Model { use HasFactory; protected $guarded = []; }
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/app/Commands/InvoiceSecret.php
tests/.skeleton/app/Commands/InvoiceSecret.php
<?php namespace App\Commands; use Domain\Invoicing\Models\Invoice; use Illuminate\Console\Command; class InvoiceSecret extends Command { protected $signature = 'invoice:secret'; protected $description = 'Show the invoice secret.'; public function handle() { $this->line(Invoice::getSecret() ...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/app/Policies/PostPolicy.php
tests/.skeleton/app/Policies/PostPolicy.php
<?php namespace App\Policies; use App\Models\Post; use App\Models\User; class PostPolicy { /** * Determine if the given post can be updated by the user. */ public function update(User $user, Post $post): bool { return $user->id === $post->user_id; } }
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/bootstrap/providers.php
tests/.skeleton/bootstrap/providers.php
<?php return [];
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/src/Application/Database/Migrations/2024_10_14_215912_application_setup.php
tests/.skeleton/src/Application/Database/Migrations/2024_10_14_215912_application_setup.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { // } /** * Reverse the migrations. */ ...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/src/Application/Models/Login.php
tests/.skeleton/src/Application/Models/Login.php
<?php namespace Application\Models; use Illuminate\Database\Eloquent\Model; use Lunarstorm\LaravelDDD\Factories\HasDomainFactory; class Login extends Model { use HasDomainFactory; protected static $secret = null; public static function setSecret($secret): void { self::$secret = $secret; ...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/src/Application/Commands/ApplicationSync.php
tests/.skeleton/src/Application/Commands/ApplicationSync.php
<?php namespace Application\Commands; use Illuminate\Console\Command; use Infrastructure\Models\AppSession; class ApplicationSync extends Command { protected $signature = 'application:sync'; protected $description = 'Sync application state.'; public function handle() { $this->info('Applicat...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/src/Application/Providers/ApplicationServiceProvider.php
tests/.skeleton/src/Application/Providers/ApplicationServiceProvider.php
<?php namespace Application\Providers; use Infrastructure\Models\AppSession; use Illuminate\Foundation\Application; use Illuminate\Support\ServiceProvider; use Infrastructure\Support\Clipboard; class ApplicationServiceProvider extends ServiceProvider { public function register() { $this->app->singlet...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/src/Application/Policies/LoginPolicy.php
tests/.skeleton/src/Application/Policies/LoginPolicy.php
<?php namespace Application\Policies; use App\Models\User; use Application\Models\Login; use Illuminate\Auth\Access\HandlesAuthorization; class LoginPolicy { use HandlesAuthorization; public function viewAny(User $user) { // } public function view(User $user, Login $login) { ...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/src/Domain/Invoicing/Database/Migrations/2024_10_14_215911_do_nothing.php
tests/.skeleton/src/Domain/Invoicing/Database/Migrations/2024_10_14_215911_do_nothing.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { // } /** * Reverse the migrations. */ ...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/src/Domain/Invoicing/Database/Factories/VanillaModelFactory.php
tests/.skeleton/src/Domain/Invoicing/Database/Factories/VanillaModelFactory.php
<?php namespace Domain\Invoicing\Database\Factories; use Illuminate\Database\Eloquent\Factories\Factory; class VanillaModelFactory extends Factory { public function definition() { return []; } }
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/src/Domain/Invoicing/Database/Factories/InvoiceFactory.php
tests/.skeleton/src/Domain/Invoicing/Database/Factories/InvoiceFactory.php
<?php namespace Domain\Invoicing\Database\Factories; use Illuminate\Database\Eloquent\Factories\Factory; class InvoiceFactory extends Factory { public function definition() { return []; } }
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/src/Domain/Invoicing/Models/VanillaModel.php
tests/.skeleton/src/Domain/Invoicing/Models/VanillaModel.php
<?php namespace Domain\Invoicing\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class VanillaModel extends Model { use HasFactory; }
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/src/Domain/Invoicing/Models/Invoice.php
tests/.skeleton/src/Domain/Invoicing/Models/Invoice.php
<?php namespace Domain\Invoicing\Models; use Lunarstorm\LaravelDDD\Models\DomainModel; class Invoice extends DomainModel { protected static $secret = null; public static function setSecret($secret): void { self::$secret = $secret; } public static function getSecret(): ?string { ...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/src/Domain/Invoicing/Models/Payment.php
tests/.skeleton/src/Domain/Invoicing/Models/Payment.php
<?php namespace Domain\Invoicing\Models; use Lunarstorm\LaravelDDD\Models\DomainModel; class Payment extends DomainModel { }
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/src/Domain/Invoicing/Commands/InvoiceDeliver.php
tests/.skeleton/src/Domain/Invoicing/Commands/InvoiceDeliver.php
<?php namespace Domain\Invoicing\Commands; use Domain\Invoicing\Models\Invoice; use Illuminate\Console\Command; class InvoiceDeliver extends Command { protected $signature = 'invoice:deliver'; protected $description = 'Deliver invoice.'; public function handle() { $this->info('Invoice deliv...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/src/Domain/Invoicing/Providers/InvoiceServiceProvider.php
tests/.skeleton/src/Domain/Invoicing/Providers/InvoiceServiceProvider.php
<?php namespace Domain\Invoicing\Providers; use Domain\Invoicing\Models\Invoice; use Illuminate\Foundation\Application; use Illuminate\Support\ServiceProvider; use Infrastructure\Support\Clipboard; class InvoiceServiceProvider extends ServiceProvider { public function register() { $this->app->singlet...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/src/Domain/Invoicing/Policies/InvoicePolicy.php
tests/.skeleton/src/Domain/Invoicing/Policies/InvoicePolicy.php
<?php namespace Domain\Invoicing\Policies; use App\Models\User; use Domain\Invoicing\Models\Invoice; use Illuminate\Auth\Access\HandlesAuthorization; class InvoicePolicy { use HandlesAuthorization; public function viewAny(User $user) { // } public function view(User $user, Invoice $invo...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/src/Domain/Internal/Reporting/Database/Factories/ReportFactory.php
tests/.skeleton/src/Domain/Internal/Reporting/Database/Factories/ReportFactory.php
<?php namespace Domain\Internal\Reporting\Database\Factories; use Illuminate\Database\Eloquent\Factories\Factory; class ReportFactory extends Factory { public function definition() { return []; } }
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/src/Domain/Internal/Reporting/Models/Report.php
tests/.skeleton/src/Domain/Internal/Reporting/Models/Report.php
<?php namespace Domain\Internal\Reporting\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Report extends Model { use HasFactory; }
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/src/Infrastructure/Support/Clipboard.php
tests/.skeleton/src/Infrastructure/Support/Clipboard.php
<?php namespace Infrastructure\Support; class Clipboard { protected static $clips = []; public static function set(string $key, $value): void { data_set(static::$clips, $key, $value); } public static function get(string $key) { return data_get(static::$clips, $key); } }
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/src/Infrastructure/Models/AppSession.php
tests/.skeleton/src/Infrastructure/Models/AppSession.php
<?php namespace Infrastructure\Models; use Illuminate\Database\Eloquent\Model; use Lunarstorm\LaravelDDD\Factories\HasDomainFactory; class AppSession extends Model { use HasDomainFactory; protected static $secret = null; public static function setSecret($secret): void { self::$secret = $sec...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/src/Infrastructure/Commands/LogPrune.php
tests/.skeleton/src/Infrastructure/Commands/LogPrune.php
<?php namespace Infrastructure\Commands; use Illuminate\Console\Command; use Infrastructure\Support\Clipboard; class LogPrune extends Command { protected $signature = 'log:prune'; protected $description = 'Prune system logs.'; public function handle() { $this->info('System logs pruned!'); ...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/src/Infrastructure/Providers/InfrastructureServiceProvider.php
tests/.skeleton/src/Infrastructure/Providers/InfrastructureServiceProvider.php
<?php namespace Infrastructure\Providers; use Illuminate\Foundation\Application; use Illuminate\Support\ServiceProvider; use Infrastructure\Support\Clipboard; class InfrastructureServiceProvider extends ServiceProvider { public function register() { $this->app->singleton('infrastructure-singleton', f...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/src/Infrastructure/Policies/AppSessionPolicy.php
tests/.skeleton/src/Infrastructure/Policies/AppSessionPolicy.php
<?php namespace Infrastructure\Policies; use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; use Infrastructure\Models\AppSession; class AppSessionPolicy { use HandlesAuthorization; public function viewAny(User $user) { // } public function view(User $user, AppSession ...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/config/ddd.php
tests/.skeleton/config/ddd.php
<?php return [ /* |-------------------------------------------------------------------------- | Domain Layer |-------------------------------------------------------------------------- | | The path and namespace of the domain layer. | */ 'domain_path' => 'src/Domain', 'domain_n...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/database/factories/VanillaModelFactory.php
tests/.skeleton/database/factories/VanillaModelFactory.php
<?php namespace Database\Factories; use Illuminate\Database\Eloquent\Factories\Factory; class VanillaModelFactory extends Factory { public function definition() { return []; } }
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/database/factories/Invoicing/PaymentFactory.php
tests/.skeleton/database/factories/Invoicing/PaymentFactory.php
<?php namespace Database\Factories\Invoicing; use Illuminate\Database\Eloquent\Factories\Factory; class PaymentFactory extends Factory { public function definition() { return []; } }
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/.skeleton/database/factories/Invoicing/InvoiceFactory.php
tests/.skeleton/database/factories/Invoicing/InvoiceFactory.php
<?php namespace Database\Factories\Invoicing; use Illuminate\Database\Eloquent\Factories\Factory; class InvoiceFactory extends Factory { public function definition() { return []; } }
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Generator/DtoMakeTest.php
tests/Generator/DtoMakeTest.php
<?php use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Config; use Illuminate\Support\Str; use Lunarstorm\LaravelDDD\Tests\Fixtures\Enums\Feature; it('can generate data transfer objects', function ($domainPath, $domainRoot) { Config::set('ddd.domain_path', $domainPath); Config::set('ddd....
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Generator/FactoryMakeTest.php
tests/Generator/FactoryMakeTest.php
<?php use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Config; use Illuminate\Support\Str; use Lunarstorm\LaravelDDD\Support\Domain; use Lunarstorm\LaravelDDD\Support\Path; use Lunarstorm\LaravelDDD\Tests\Fixtures\Enums\Feature; it('can generate domain factories', function ($domainPath, $domainR...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Generator/ExtendedMakeTest.php
tests/Generator/ExtendedMakeTest.php
<?php use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Config; use Lunarstorm\LaravelDDD\Support\Domain; it('can generate other objects', function ($type, $objectName, $domainPath, $domainRoot) { if (in_array($type, ['class', 'enum', 'interface', 'trait'])) { skipOnLaravelVersionsBel...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Generator/ValueObjectMakeTest.php
tests/Generator/ValueObjectMakeTest.php
<?php use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Config; use Illuminate\Support\Str; use Lunarstorm\LaravelDDD\Tests\Fixtures\Enums\Feature; it('can generate value objects', function ($domainPath, $domainRoot) { Config::set('ddd.domain_path', $domainPath); Config::set('ddd.domain_n...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Generator/ControllerMakeTest.php
tests/Generator/ControllerMakeTest.php
<?php use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\File; use Lunarstorm\LaravelDDD\Support\Path; use Lunarstorm\LaravelDDD\Tests\Fixtures\Enums\Feature; beforeEach(function () { $this->cleanSlate(); $this->setupTestApplication(); Config::se...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Generator/NestedNameTest.php
tests/Generator/NestedNameTest.php
<?php use Illuminate\Support\Facades\Config; use Illuminate\Support\Str; it('can generate nested objects', function ($type, $configuredNamespace, $nameInput, $expectedNamespace, $expectedPath) { if (in_array($type, ['class', 'enum', 'interface', 'trait'])) { skipOnLaravelVersionsBelow('11'); } $d...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Generator/ViewModelMakeTest.php
tests/Generator/ViewModelMakeTest.php
<?php use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Config; use Illuminate\Support\Str; it('can generate view models', function ($domainPath, $domainRoot) { Config::set('ddd.domain_path', $domainPath); Config::set('ddd.domain_namespace', $domainRoot); Config::set('ddd.base_view_mo...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Generator/CustomLayerTest.php
tests/Generator/CustomLayerTest.php
<?php use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Config; beforeEach(function () { $this->cleanSlate(); Config::set('ddd.layers', [ 'CustomLayer' => 'src/CustomLayer', ]); }); it('can generate objects into custom layers', function ($type, $objectName, $expectedNamespac...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Generator/ActionMakeTest.php
tests/Generator/ActionMakeTest.php
<?php use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Config; use Illuminate\Support\Str; use Lunarstorm\LaravelDDD\Tests\Fixtures\Enums\Feature; it('can generate action objects', function ($domainPath, $domainRoot) { Config::set('ddd.domain_path', $domainPath); Config::set('ddd.domain_...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Generator/BaseModelMakeTest.php
tests/Generator/BaseModelMakeTest.php
<?php use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Config; use Lunarstorm\LaravelDDD\Tests\Fixtures\Enums\Feature; it('can generate domain base model', function ($domainPath, $domainRoot) { Config::set('ddd.domain_path', $domainPath); Config::set('ddd.domain_namespace', $domainRoot);...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false
lunarstorm/laravel-ddd
https://github.com/lunarstorm/laravel-ddd/blob/df1a2e6ce4d7149706dc8e383c925a1933587c58/tests/Generator/RequestMakeTest.php
tests/Generator/RequestMakeTest.php
<?php use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Config; use Lunarstorm\LaravelDDD\Tests\Fixtures\Enums\Feature; beforeEach(function () { Config::set([ 'ddd.domain_path' => 'src/Domain', 'ddd.domain_namespace' => 'Domain', 'ddd.application_path' => 'app/Modules'...
php
MIT
df1a2e6ce4d7149706dc8e383c925a1933587c58
2026-01-05T03:56:01.351307Z
false