Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

input if not null laravel

public function store(Request $request)
{
    if($request->filled('user_id')) {
        dd('user_id is not empty.');
    } else {
        dd('user_id is empty.');
    }
}
Source by www.itsolutionstuff.com #
 
PREVIOUS NEXT
Tagged: #input #null #laravel
ADD COMMENT
Topic
Name
7+9 =