fix app namespace and update comments

This commit is contained in:
2025-07-17 17:00:46 +03:30
parent 89a7eed847
commit f1ecb8a2a8
8 changed files with 24 additions and 9 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
namespace Dabestaniha\AuthenticateBridge\App\Http\Requests;
use Dabestaniha\AuthenticateBridge\Support\Collection;
use Dabestaniha\AuthenticateBridge\App\Support\Collection;
abstract class BaseFormRequest
{
+21
View File
@@ -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;
}
}