public function store(Request $request)
{
if($request->filled('user_id')) {
dd('user_id is not empty.');
} else {
dd('user_id is empty.');
}
}
public function store(Request $request)
{
if($request->has('user_id')) {
dd('user_id is exists.');
} else {
dd('user_id is not exists.');
}
}