Illuminate\Database\Query\Builder::rightJoin PHP Method

rightJoin() public method

Add a right join to the query.
public rightJoin ( string $table, string $first, string $operator = null, string $second = null ) : Builder | static
$table string
$first string
$operator string
$second string
return Builder | static
    public function rightJoin($table, $first, $operator = null, $second = null)
    {
        return $this->join($table, $first, $operator, $second, 'right');
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Add a right join to the query.
  *
  * @param string $table
  * @param string $first
  * @param string $operator
  * @param string $second
  * @return \Illuminate\Database\Query\Builder|static 
  * @static 
  */
 public static function rightJoin($table, $first, $operator = null, $second = null)
 {
     return \Illuminate\Database\Query\Builder::rightJoin($table, $first, $operator, $second);
 }