Verifique si el valor no es nulo en DB Laravel
Model::whereNotNull('sent_at')
Anxious Anteater
Model::whereNotNull('sent_at')
'password' => 'nullable|min:6|confirmed',
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.');
}
}