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

Method "only" does not exist on class "Illuminate\Http\Request" #1573

Open
ALameLlama opened this issue Jul 25, 2024 · 0 comments
Open

Method "only" does not exist on class "Illuminate\Http\Request" #1573

ALameLlama opened this issue Jul 25, 2024 · 0 comments
Labels

Comments

@ALameLlama
Copy link

Versions:

  • ide-helper Version: 3.1.0
  • Laravel Version: 11.17
  • PHP Version: 8.3.7

Description:

The validate function is defined within _ide_helper but only isn't

    public function store(Request $request): RedirectResponse
    {
        $request->validate([
            'title' => 'required|string|max:255',
        ]);

        $todo = Todo::create($request->only('title'));

        return redirect(route('todo.index'));
    }

image

@ALameLlama ALameLlama added the bug label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant