Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Commit 1981648

Browse files
committed
Fixing declaration compatibility of Form::model()
1 parent 41a0932 commit 1981648

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"illuminate/html": ">=4.2",
2121
"illuminate/support": ">=4.2",
2222
"illuminate/validation": ">=4.0",
23-
"illuminate/routing": ">=4.0"
23+
"illuminate/routing": ">=4.0",
24+
"laravelbook/ardent": "2.*"
2425
},
2526
"autoload": {
2627
"psr-4": {

src/Laravalid/FormBuilder.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@
1515
*
1616
* @package Laravel Validation For Client-Side
1717
* @author Bilal Gultekin <[email protected]>
18+
* @author Igor Santos <[email protected]>
1819
* @license MIT
1920
* @see Illuminate\Html\FormBuilder
2021
* @version 0.9
2122
*/
2223
use Lang;
24+
use LaravelBook\Ardent\Ardent;
2325

2426
class FormBuilder extends \Illuminate\Html\FormBuilder {
2527

@@ -94,7 +96,7 @@ public function open(array $options = array(), $rules = null)
9496
*
9597
* @see Illuminate\Html\FormBuilder
9698
*/
97-
public function model(Ardent $model, array $options = array())
99+
public function model($model, array $options = array())
98100
{
99101
$this->setValidation($model::$rules);
100102
return parent::model($model, $options);

0 commit comments

Comments
 (0)