Skip to content

Commit 52a9761

Browse files
committed
Fix method annotations and update facade accessor in Selectable
1 parent a39e7cb commit 52a9761

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

ide-helper/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Illuminate\Support {
44
/**
5-
* @method \Ringlesoft\LaravelSelectable\Facades\Selectable toSelectable()
5+
* @method \Ringlesoft\LaravelSelectable\Selectable toSelectable()
66
* @mehtbod string toSelectOptions(string|callable $label = null, string|callable $value = null, mixed $selected = null, mixed $disabled = null)
77
*/
88
class Collection

src/Facades/Selectable.php

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,28 @@
22

33
namespace Ringlesoft\LaravelSelectable\Facades;
44

5+
use Closure;
6+
use Illuminate\Support\Collection;
57
use Illuminate\Support\Facades\Facade;
6-
use RingleSoft\LaravelSelectable\LaravelSelectableServiceProvider;
78

9+
/**
10+
* @method static self fromCollection(Collection $collection)
11+
* @method static string collectionToSelectOptions(Collection $collection, string|Closure|null $label = null, string|Closure|null $value = null, mixed $selected = null, mixed $disabled = null)
12+
* @method static Collection toCollection()
13+
* @method static string toSelectOptions()
14+
* @method static Collection toSelectItems()
15+
* @method static self withLabel(string|Closure $label)
16+
* @method static self withValue(string|Closure $value)
17+
* @method static self withSelected(mixed $selected)
18+
* @method static self withDisabled(mixed $disabled)
19+
* @method static self withDataAttribute(string|Closure $attribute, string|Closure $value)
20+
* @method static self withClass(string|array|Closure $class)
21+
* @method static self withId(Closure $id)
22+
*/
823
class Selectable extends Facade
924
{
1025
protected static function getFacadeAccessor(): string
1126
{
12-
return LaravelSelectableServiceProvider::class;
27+
return \RingleSoft\LaravelSelectable\Selectable::class;
1328
}
1429
}

0 commit comments

Comments
 (0)