public function updated(Option $model)
    {
        $option  = Option::query()->firstOrNew([
            'name' => 'notifications_remove_after_days'
        ]);

        $option->value = input('days');
        return $option->save();
    }
public function updated(Option $model)
    {
        $option  = Option::query()->firstOrNew([
            'name' => 'notifications_remove_after_days'
        ]);

        $option->value = input('days');
        return $option->save();
    }
public function updated ( Option $ model ) { $ option = Option :: query ( ) -> firstOrNew ( [ 'name' => 'notifications_remove_after_days' ] ) ; $ option -> value = input ( 'days' ) ; return $ option -> save ( ) ; }
Save notifications configuration

@param Option $model
Save notifications configuration