Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

input if not null laravel

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