added support for database expressions.

This commit is contained in:
Taylor Otwell
2011-10-12 19:55:44 -05:00
parent 76400967d9
commit 68455378cc
5 changed files with 123 additions and 21 deletions

View File

@@ -91,6 +91,19 @@ class Manager {
return static::connection($connection)->table($table);
}
/**
* Create a new database expression instance.
*
* Database expressions are used to inject raw SQL into a fluent query.
*
* @param string $value
* @return Expression
*/
public static function raw($value)
{
return new Expression($value);
}
/**
* Magic Method for calling methods on the default database connection.
*