update socket
This commit is contained in:
@@ -52,6 +52,9 @@ class LogsSearch extends Logs {
|
||||
|
||||
$dataProvider = new ActiveDataProvider([
|
||||
'query' => $query,
|
||||
'sort' => [
|
||||
'defaultOrder' => ['time_in' => SORT_DESC, 'time_out' => SORT_DESC]
|
||||
]
|
||||
]);
|
||||
|
||||
$this->load($params);
|
||||
|
||||
@@ -32,7 +32,7 @@ class Vehicle extends \yii\db\ActiveRecord {
|
||||
*/
|
||||
public function rules() {
|
||||
return [
|
||||
[['plate', 'type'], 'required'],
|
||||
[['plate'], 'required'],
|
||||
[['company', 'vehicle_type'], 'string'],
|
||||
[['plate', 'type'], 'string', 'max' => 20],
|
||||
[['driver', 'telephone', 'indentity_card'], 'string', 'max' => 200],
|
||||
|
||||
Reference in New Issue
Block a user