9
9
use Illuminate \Contracts \View \Factory ;
10
10
use Illuminate \Foundation \Http \Middleware \ConvertEmptyStringsToNull ;
11
11
use Illuminate \Http \Request ;
12
+ use Illuminate \Support \Arr ;
12
13
use Illuminate \Support \Collection ;
13
14
use Illuminate \Support \Facades \App ;
14
15
use Illuminate \Support \HtmlString ;
@@ -134,7 +135,7 @@ public function __construct(HtmlBuilder $html, UrlGenerator $url, Factory $view,
134
135
*/
135
136
public function open (array $ options = [])
136
137
{
137
- $ method = array_get ($ options , 'method ' , 'post ' );
138
+ $ method = Arr:: get ($ options , 'method ' , 'post ' );
138
139
139
140
// We need to extract the proper method from the attributes. If the method is
140
141
// something other than GET or POST we'll use POST since we will spoof the
@@ -159,7 +160,7 @@ public function open(array $options = [])
159
160
// is used to spoof requests for this PUT, PATCH, etc. methods on forms.
160
161
$ attributes = array_merge (
161
162
162
- $ attributes , array_except ($ options , $ this ->reserved )
163
+ $ attributes , Arr:: except ($ options , $ this ->reserved )
163
164
164
165
);
165
166
@@ -589,9 +590,9 @@ protected function setTextAreaSize($options)
589
590
// If the "size" attribute was not specified, we will just look for the regular
590
591
// columns and rows attributes, using sane defaults if these do not exist on
591
592
// the attributes array. We'll then return this entire options array back.
592
- $ cols = array_get ($ options , 'cols ' , 50 );
593
+ $ cols = Arr:: get ($ options , 'cols ' , 50 );
593
594
594
- $ rows = array_get ($ options , 'rows ' , 10 );
595
+ $ rows = Arr:: get ($ options , 'rows ' , 10 );
595
596
596
597
return array_merge ($ options , compact ('cols ' , 'rows ' ));
597
598
}
0 commit comments