There was an error while loading. Please reload this page.
1 parent 10061f1 commit c9d34b7Copy full SHA for c9d34b7
1 file changed
src/Illuminate/Http/Concerns/InteractsWithInput.php
@@ -542,4 +542,28 @@ public function dump($keys = [])
542
543
return $this;
544
}
545
+
546
+ /**
547
+ * Retrieve input from the request as a stringable.
548
+ *
549
+ * @param string $key
550
+ * @param mixed $default
551
+ * @return \Illuminate\Support\Stringable
552
+ */
553
+ public function str($key, $default = null)
554
+ {
555
+ return $this->string($key, $default);
556
+ }
557
558
559
560
561
562
563
564
565
+ public function string($key, $default = null)
566
567
+ return str($this->input($key, $default));
568
569
0 commit comments