| 1 | <?php |
||
| 11 | class Widget extends Facade |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Get the registered name of the component. |
||
| 15 | * |
||
| 16 | * @return string |
||
| 17 | */ |
||
| 18 | protected static function getFacadeAccessor() |
||
| 19 | { |
||
| 20 | return 'rinvex.widgets'; |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Get the widgets collection. |
||
| 25 | * |
||
| 26 | * @return \Illuminate\Support\Collection |
||
| 27 | */ |
||
| 28 | public static function list(): Collection |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Get the widget groups collection. |
||
| 35 | * |
||
| 36 | * @return \Illuminate\Support\Collection |
||
| 37 | */ |
||
| 38 | public static function groups(): Collection |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Get the given group's widget collection. |
||
| 45 | * |
||
| 46 | * @param string $name |
||
| 47 | * |
||
| 48 | * @return \Rinvex\Widgets\Models\WidgetGroup |
||
| 49 | */ |
||
| 50 | public static function group(string $name): WidgetGroup |
||
| 55 | } |
||
| 56 |