I wanted your help, because I create some routes in the controller with laravel --resource and when I receive the data by $request and insert it into my database, I do not receive data. And I forgot to mention that it is an api in laravel.
Here is my route code
Route::resource('blog', App\Http\Controllers\BlogController::class)->only(['index','store','update','show','destroy']);
Here is my controller API code
public function store(Request $request)
{
$blog = Blog::create($request->post());
return response()->json([
'blog'=>$blog
]);
}
here I attach the capture after putting print_r($request->all());
look what appears to me