SQLSTATE[HY000]: General error: 1364 in LARAVEL 5.7

Posted 3 weeks ago by mohammadbasir

Why my coding is not working?

    public function store(project $project){
        $valid_data = request()->validate([
            'title' => ['required', 'min:3'],
            'description' => ['required', 'min:3'],
        ]);
        
        $project->create(request($valid_data));

        return redirect('/projects');
    }

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.