-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
155 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
94 changes: 94 additions & 0 deletions
94
tests/Console/ModelsCommand/Factories/__snapshots__/Test__test_9__1.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Models; | ||
|
||
use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\CustomSpace\ModelWithCustomNamespaceFactory; | ||
use Illuminate\Database\Eloquent\Factories\HasFactory; | ||
use Illuminate\Database\Eloquent\Model; | ||
|
||
/** | ||
* Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Models\ModelWithCustomNamespace | ||
* | ||
* @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\CustomSpace\ModelWithCustomNamespaceFactory factory($count = null, $state = []) | ||
* @method static \Illuminate\Database\Eloquent\Builder|ModelWithCustomNamespace newModelQuery() | ||
* @method static \Illuminate\Database\Eloquent\Builder|ModelWithCustomNamespace newQuery() | ||
* @method static \Illuminate\Database\Eloquent\Builder|ModelWithCustomNamespace query() | ||
* @mixin \Eloquent | ||
*/ | ||
class ModelWithCustomNamespace extends Model | ||
{ | ||
use HasFactory; | ||
|
||
/** | ||
* Create a new factory instance for the model. | ||
* | ||
* @return \Illuminate\Database\Eloquent\Factories\Factory | ||
*/ | ||
protected static function newFactory() | ||
{ | ||
return ModelWithCustomNamespaceFactory::new(); | ||
} | ||
} | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Models; | ||
|
||
use Illuminate\Database\Eloquent\Factories\HasFactory; | ||
use Illuminate\Database\Eloquent\Model; | ||
|
||
/** | ||
* Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Models\ModelWithFactory | ||
* | ||
* @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Factories\ModelWithFactoryFactory factory($count = null, $state = []) | ||
* @method static \Illuminate\Database\Eloquent\Builder|ModelWithFactory newModelQuery() | ||
* @method static \Illuminate\Database\Eloquent\Builder|ModelWithFactory newQuery() | ||
* @method static \Illuminate\Database\Eloquent\Builder|ModelWithFactory query() | ||
* @mixin \Eloquent | ||
*/ | ||
class ModelWithFactory extends Model | ||
{ | ||
use HasFactory; | ||
} | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Models; | ||
|
||
/** | ||
* Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Models\ModelWithNestedFactory | ||
* | ||
* @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Factories\ModelWithNestedFactoryFactory factory($count = null, $state = []) | ||
* @method static \Illuminate\Database\Eloquent\Builder|ModelWithNestedFactory newModelQuery() | ||
* @method static \Illuminate\Database\Eloquent\Builder|ModelWithNestedFactory newQuery() | ||
* @method static \Illuminate\Database\Eloquent\Builder|ModelWithNestedFactory query() | ||
* @mixin \Eloquent | ||
*/ | ||
class ModelWithNestedFactory extends ModelWithFactory | ||
{ | ||
} | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Models; | ||
|
||
use Illuminate\Database\Eloquent\Factories\HasFactory; | ||
use Illuminate\Database\Eloquent\Model; | ||
|
||
/** | ||
* Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Models\ModelWithoutFactory | ||
* | ||
* @method static \Illuminate\Database\Eloquent\Builder|ModelWithoutFactory newModelQuery() | ||
* @method static \Illuminate\Database\Eloquent\Builder|ModelWithoutFactory newQuery() | ||
* @method static \Illuminate\Database\Eloquent\Builder|ModelWithoutFactory query() | ||
* @mixin \Eloquent | ||
*/ | ||
class ModelWithoutFactory extends Model | ||
{ | ||
use HasFactory; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters