make database connection protected.
This commit is contained in:
@@ -5,13 +5,6 @@ use Laravel\Database\Manager as DB;
|
|||||||
|
|
||||||
class Validator {
|
class Validator {
|
||||||
|
|
||||||
/**
|
|
||||||
* The database connection that should be used by the validator.
|
|
||||||
*
|
|
||||||
* @var Database\Connection
|
|
||||||
*/
|
|
||||||
public $connection;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The array being validated.
|
* The array being validated.
|
||||||
*
|
*
|
||||||
@@ -40,6 +33,13 @@ class Validator {
|
|||||||
*/
|
*/
|
||||||
protected $messages = array();
|
protected $messages = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The database connection that should be used by the validator.
|
||||||
|
*
|
||||||
|
* @var Database\Connection
|
||||||
|
*/
|
||||||
|
protected $connection;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The language that should be used when retrieving error messages.
|
* The language that should be used when retrieving error messages.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user