fix app namespace and update comments
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Dabestaniha\AuthenticateBridge\App\Http\Requests;
|
||||
|
||||
use Dabestaniha\AuthenticateBridge\Support\Collection;
|
||||
use Dabestaniha\AuthenticateBridge\App\Support\Collection;
|
||||
|
||||
abstract class BaseFormRequest
|
||||
{
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Dabestaniha\AuthenticateBridge\App\Support;
|
||||
|
||||
class Collection
|
||||
{
|
||||
public static function make(array $items): static
|
||||
{
|
||||
return new static($items);
|
||||
}
|
||||
|
||||
public function __construct(private array $items)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
public function get(string $key, $default = null)
|
||||
{
|
||||
return $this->items[$key] ?? $default;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user