You can do
$rules = array();
if ( Input::has('image') )
{
$rules['image'] = 'required';
}
eriktisme said:
You can do
$rules = array();
if ( Input::has('image') ) { $rules['image'] = 'required'; }
This works only if user submits new image. But since I stored image information in database I can use your code to solve my problem. Thanks
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community