03-27-2018, 10:24 AM
The Input Class sanitizes null values and turns it into "" (essential empty or null but neither), what I generally do is this:
Assuming title of textarea is called "textarea":
$textarea = Input::get('textarea');
if($textarea=='') $textarea=null;
Then you would be able to use is_null. Otherwise, you can use =='' instead.
Brandin.
Assuming title of textarea is called "textarea":
$textarea = Input::get('textarea');
if($textarea=='') $textarea=null;
Then you would be able to use is_null. Otherwise, you can use =='' instead.
Brandin.