Add multiply and divide update queries

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Unknown
    • laravel-5.5.0
    • Affects Version/s: None
    • Component/s: Laravel
    • None
    • None
    • PHP Drivers
    • Needed
    • Hide

      1. What would you like to communicate to the user about this feature?

      New methods in Query Builder and Eloquent Builder to perform updates.

      2. Would you like the user to see examples of the syntax and/or executable code and its output?

      DB::table('users')>where('name', 'John Doe')>multiply('salary');    // "salary" * 1
      DB::table('users')>where('name', 'John Doe')>multiply('salary', 2); // "salary" * 2
      DB::table('users')>where('name', 'John Doe')>divide('salary');      // "salary" / 1
      DB::table('users')>where('name', 'John Doe')>divide('salary', 2);   // "salary" / 2

      3. Which versions of the driver/connector does this apply to?

      Laravel-MongoDB 5.5

      Show
      1. What would you like to communicate to the user about this feature? New methods in Query Builder and Eloquent Builder to perform updates. 2. Would you like the user to see examples of the syntax and/or executable code and its output? DB::table('users') >where('name', 'John Doe') >multiply('salary');    // "salary" * 1 DB::table('users') >where('name', 'John Doe') >multiply('salary', 2); // "salary" * 2 DB::table('users') >where('name', 'John Doe') >divide('salary');      // "salary" / 1 DB::table('users') >where('name', 'John Doe') >divide('salary', 2);   // "salary" / 2 3. Which versions of the driver/connector does this apply to? Laravel-MongoDB 5.5
    • None
    • None
    • None
    • None
    • None
    • None

          Assignee:
          Jérôme Tamarelle
          Reporter:
          Jérôme Tamarelle
          Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

            Created:
            Updated:
            Resolved: