Support the ongoing development of Laravel.io →
Database Blade Forms
Last updated 1 year ago.
0

Input::has - the has will respond to a value from a field and if the field was not filled in will return null.

Try this

if(Input::get('new_type') == '')
            {
                $property->Type = Input::get('curr_type');
            }
else
            {
                $property->Type = Input::get('new_type');
            }

Last updated 8 years ago.
0

AtomicRSA said:

Input::has - the has will respond to a value from a field and if the field was not filled in will return null.

Try this

if(Input::get('new_type') == '')
           {
               $property->Type = Input::get('curr_type');
           }
else
           {
               $property->Type = Input::get('new_type');
           }

Still nothing. The same thing happens.

0

Did you solve this or do you still need help??

0

Sign in to participate in this thread!

Eventy

Your banner here too?

empesis empesis Joined 26 Jan 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.