Hi thank you for your response but it ddnt work still returns the same error. what do you think is causing the error?
I think error in route You have use
Route::get('newpost',.....);
Route::post('newpost',....);
Or try
$user->posts()->save($post)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community