So I have found the error. I was trying to create project out of $valid_data from request. Which is not needed.
public function store(project $project){
// validation stuff
$project->create(request($valid_data)); // <=== here is the error
}
so i just changed it to
$project->create($valid_data);
and everything works fine. I have found this solution here.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community