Skip to content

Commit

Permalink
Merge pull request #32 from mokhosh/simplify-request-and-factory
Browse files Browse the repository at this point in the history
Simplify request and factory
  • Loading branch information
freekmurze authored Feb 15, 2024
2 parents 4c5c620 + 460a6c0 commit b0ad611
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions stubs/factory.stub
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@
namespace {{ factoryNamespace }};

use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use {{ namespacedModel }};

class {{ model }}Factory extends Factory
{
protected $model = {{ model }}::class;

public function definition()
{
return [
Expand Down
3 changes: 0 additions & 3 deletions stubs/request.stub
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ use Illuminate\Foundation\Http\FormRequest;

class {{ class }} extends FormRequest
{
/**
* @return array<string, mixed>
*/
public function rules(): array
{
return [];
Expand Down

0 comments on commit b0ad611

Please sign in to comment.