Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add {{requestNamespace}}; in Request.stub #52

Open
saeedvir opened this issue Jan 22, 2025 · 0 comments
Open

add {{requestNamespace}}; in Request.stub #52

saeedvir opened this issue Jan 22, 2025 · 0 comments

Comments

@saeedvir
Copy link

update this file:

<?php

namespace {{requestNamespace}};

use Illuminate\Foundation\Http\FormRequest;

class {{modelName}}Request extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     */
    public function authorize(): bool
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
     */
    public function rules(): array
    {
        return [{{rules}}
        ];
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant