laravel-shift/blueprint

Need ignore softDeletesTz and softDeletes in resources and requests

Closed this issue · 1 comments

  • Laravel Version: 9.14
  • PHP Version: 8.1
  • Blueprint Version: 2.4
  • Platform: Windows

Issue:

In app/Http/Resources/PostResource.php:

        return [
            'id' => $this->id,
            'title' => $this->title,
            'softdeletestz' => $this->softdeletestz,
        ];

In app/Http/Requests/PostStoreRequest.php:

        return [
            'title' => ['required'],
            'softdeletestz' => ['required'],
        ];

draft.yaml:

Post:
    title: string:400
    softDeletesTz

Thanks. Seems like softdeletestz is not ignored when generating these classes. It should be for the form request, I'm not sure about the resource.

Feel free to open a PR. Otherwise, I'll try to get to this early next year.