Skip to content

Commit b9eef88

Browse files
committed
Update namespace to wotz
1 parent c68a8ac commit b9eef88

File tree

25 files changed

+76
-82
lines changed

25 files changed

+76
-82
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Feature request
4-
url: https://github.com/codedor/filament-link-picker/discussions/new?category=ideas
4+
url: https://github.com/wotzebra/filament-link-picker/discussions/new?category=ideas
55
about: Share ideas for new features
66
- name: Support question
7-
url: https://github.com/codedor/filament-link-picker/discussions/new?category=q-a
7+
url: https://github.com/wotzebra/filament-link-picker/discussions/new?category=q-a
88
about: Ask the community for help
99
- name: Report a security issue
10-
url: https://github.com/codedor/filament-link-picker/README.md#security
10+
url: https://github.com/wotzebra/filament-link-picker/README.md#security
1111
about: Learn how to notify us for sensitive bugs
1212
- name: Report a bug
13-
url: https://github.com/codedor/filament-link-picker/issues/new
13+
url: https://github.com/wotzebra/filament-link-picker/issues/new
1414
about: Report a reproducable bug

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ representative at an online or offline event.
6060

6161
Instances of abusive, harassing, or otherwise unacceptable behavior may be
6262
reported to the community leaders responsible for enforcement at
63-
info@codedor.be.
63+
info@whoownsthezebra.be.
6464
All complaints will be reviewed and investigated promptly and fairly.
6565

6666
All community leaders are obligated to respect the privacy and security of the

CONTRIBUTING.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ Some things to consider before submitting an issue
4545

4646
## Coding style
4747

48-
See our [guidelines](https://guidelines.codedor.be/coding-standards/php).
49-
5048
### Laravel Pint
5149

5250
Don't worry if your code styling is not perfect! Each of our packages have a [Laravel Pint](https://github.com/laravel/pint) Github Action will automatically merge any style fixes into the package when you commit changes to a pull request.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This is where your description should go. Limit it to a paragraph or two. Consid
99
You can install the package via composer:
1010

1111
```bash
12-
composer require codedor/filament-link-picker
12+
composer require wotz/filament-link-picker
1313
```
1414

1515
Optionally, you can publish the views using
@@ -21,7 +21,7 @@ php artisan vendor:publish --tag="filament-link-picker-views"
2121
## Usage
2222

2323
```php
24-
\Codedor\LinkPicker\Filament\LinkPickerInput::make('route');
24+
\Wotz\LinkPicker\Filament\LinkPickerInput::make('route');
2525
```
2626

2727
## Documentation
@@ -48,7 +48,7 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
4848

4949
## Security Vulnerabilities
5050

51-
If you discover any security-related issues, please email info@codedor.be instead of using the issue tracker.
51+
If you discover any security-related issues, please email info@whoownsthezebra.be instead of using the issue tracker.
5252

5353
## License
5454

UPGRADING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
# Upgrading
22

3+
## From v1 to v2
4+
5+
- Install `wotz/filament-link-picker` instead of `codedor/filament-link-picker`
6+
- Replace all occurrences of `Codedor\LinkPicker` namespace with the new `Wotz\LinkPicker` namespace
7+
38
## From vx to vy

composer.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "codedor/filament-link-picker",
2+
"name": "wotz/filament-link-picker",
33
"description": "A custom field for Filament for picking routes",
44
"keywords": [
5-
"codedor",
5+
"who owns the zebra",
66
"laravel",
77
"filament-link-picker"
88
],
9-
"homepage": "https://github.com/codedor/filament-link-picker",
9+
"homepage": "https://github.com/wotzebra/filament-link-picker",
1010
"license": "MIT",
1111
"require": {
1212
"php": "^8.2",
@@ -15,35 +15,35 @@
1515
"spatie/laravel-package-tools": "^1.12"
1616
},
1717
"require-dev": {
18-
"codedor/laravel-translatable-routes": "^1.3",
1918
"larastan/larastan": "^2.0|^3.0",
2019
"laravel/pint": "^1.0",
2120
"nunomaduro/collision": "^7.0|^8.0|^9.0",
2221
"orchestra/testbench": "^8.0|^9.0|^10.0",
23-
"pestphp/pest": "^2.0|^3.0",
24-
"pestphp/pest-plugin-laravel": "^2.0|^3.0",
22+
"pestphp/pest": "^2.0|^3.0|^4.0",
23+
"pestphp/pest-plugin-laravel": "^2.0|^3.0|^4.0",
2524
"phpstan/extension-installer": "^1.1|^2.0",
2625
"phpstan/phpstan-deprecation-rules": "^1.0|^2.0",
27-
"phpstan/phpstan-phpunit": "^1.0|^2.0"
26+
"phpstan/phpstan-phpunit": "^1.0|^2.0",
27+
"wotz/laravel-translatable-routes": "^2.0"
2828
},
2929
"autoload": {
3030
"psr-4": {
31-
"Codedor\\LinkPicker\\": "src",
32-
"Codedor\\LinkPicker\\Database\\Factories\\": "database/factories"
31+
"Wotz\\LinkPicker\\": "src",
32+
"Wotz\\LinkPicker\\Database\\Factories\\": "database/factories"
3333
},
3434
"files": [
3535
"src/helpers.php"
3636
]
3737
},
3838
"autoload-dev": {
3939
"psr-4": {
40-
"Codedor\\LinkPicker\\Tests\\": "tests"
40+
"Wotz\\LinkPicker\\Tests\\": "tests"
4141
}
4242
},
4343
"extra": {
4444
"laravel": {
4545
"providers": [
46-
"Codedor\\LinkPicker\\Providers\\LinkPickerServiceProvider"
46+
"Wotz\\LinkPicker\\Providers\\LinkPickerServiceProvider"
4747
]
4848
}
4949
},

docs/index.md

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,19 @@
55
Install this package using composer:
66

77
```bash
8-
composer require codedor/filament-link-picker
8+
composer require wotz/filament-link-picker
99
```
1010

1111
In an effort to align with Filament's theming methodology you will need to use a custom theme to use this plugin.
1212

1313
> **Note**
1414
> If you have not set up a custom theme and are using a Panel follow the instructions in the [Filament Docs](https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme) first. The following applies to both the Panels Package and the standalone Forms package.
1515
16-
1. Import the plugin's stylesheet (if not already included) into your theme's css file.
16+
1. Import the plugin's views (if not already included) into your theme's css file.
1717

1818
```css
19-
@import '../../../../vendor/codedor/filament-link-picker/resources/css/plugin.css';
20-
```
21-
22-
2. Add the plugin's views to your `tailwind.config.js` file.
2319

24-
```js
25-
content: [
26-
...
27-
'./vendor/codedor/filament-link-picker/resources/**/*.blade.php',
28-
]
20+
@source '../../../../vendor/wotz/filament-link-picker/resources/views/**/*.blade.php';
2921
```
3022

3123
## Basic usage, simple routes without parameters
@@ -108,7 +100,7 @@ LinkCollection::addAnchorLink(
108100
);
109101
```
110102

111-
This will fetch the [Architect](https://github.com/codedor/filament-architect) fields from the current page and use them as options for the anchor link. If you want to modify this behavior, you can add a `anchorList` method to your model:
103+
This will fetch the [Architect](https://github.com/wotzebra/filament-architect) fields from the current page and use them as options for the anchor link. If you want to modify this behavior, you can add a `anchorList` method to your model:
112104

113105
```php
114106
public function anchorList(): array
@@ -122,12 +114,12 @@ public function anchorList(): array
122114

123115
## The Link object
124116

125-
You can pass a callback to the `linkPicker()` function, this callback has one parameter called `$link`, this is a `Codedor\LinkPicker\Link` object. With this object you can configure the link to your needs.
117+
You can pass a callback to the `linkPicker()` function, this callback has one parameter called `$link`, this is a `Wotz\LinkPicker\Link` object. With this object you can configure the link to your needs.
126118

127119
For example, adding a label to make your link more readable in Filament:
128120

129121
```php
130-
use Codedor\LinkPicker\Link;
122+
use Wotz\LinkPicker\Link;
131123
use Illuminate\Support\Facades\Route;
132124

133125
Route::get('/', [HomeController::class, 'show'])
@@ -142,7 +134,7 @@ Route::get('/', [HomeController::class, 'show'])
142134
If you use route model binding in your controller, the link picker will automatically build its schema according to the parameters of the route. However, you can still define the schema yourself if you want to. For example:
143135

144136
```php
145-
use Codedor\LinkPicker\Link;
137+
use Wotz\LinkPicker\Link;
146138
use Illuminate\Support\Facades\Route;
147139

148140
Route::get('{page:slug}', [PageController::class, 'show'])
@@ -160,7 +152,7 @@ Route::get('{page:slug}', [PageController::class, 'show'])
160152
You can set a label for your link, this will be shown in the link picker in Filament. For example:
161153

162154
```php
163-
use Codedor\LinkPicker\Link;
155+
use Wotz\LinkPicker\Link;
164156
use Illuminate\Support\Facades\Route;
165157

166158
Route::get('/', [HomeController::class, 'show'])
@@ -173,7 +165,7 @@ Route::get('/', [HomeController::class, 'show'])
173165
You can set a description for your link, this will be shown in the link picker in Filament. For example:
174166

175167
```php
176-
use Codedor\LinkPicker\Link;
168+
use Wotz\LinkPicker\Link;
177169
use Illuminate\Support\Facades\Route;
178170

179171
Route::get('/', [HomeController::class, 'show'])
@@ -186,7 +178,7 @@ Route::get('/', [HomeController::class, 'show'])
186178
You can group your links in Filament, this will make it easier to find them. For example:
187179

188180
```php
189-
use Codedor\LinkPicker\Link;
181+
use Wotz\LinkPicker\Link;
190182
use Illuminate\Support\Facades\Route;
191183

192184
Route::get('/', [HomeController::class, 'show'])
@@ -199,7 +191,7 @@ Route::get('/', [HomeController::class, 'show'])
199191
If you want to replace the `Selected Parameters` description, you can override the default with the `->buildDescriptionUsing()` method. For example:
200192

201193
```php
202-
use Codedor\LinkPicker\Link;
194+
use Wotz\LinkPicker\Link;
203195
use Illuminate\Support\Facades\Route;
204196

205197
Route::get('/', [HomeController::class, 'show'])
@@ -224,7 +216,7 @@ Route::get('blog/{category:slug}/{post:slug}', [PostController::class, 'show'])
224216
This route has two parameters but since the blogpost is linked to a category, there is no need to select the category in the link picker. You can use the `buildUsing` method to build the route for the link picker. For example:
225217

226218
```php
227-
use Codedor\LinkPicker\Link;
219+
use Wotz\LinkPicker\Link;
228220
use Illuminate\Support\Facades\Route;
229221

230222
Route::get('blog/{category:slug}/{post:slug}', [PostController::class, 'show'])
@@ -251,7 +243,7 @@ Route::get('blog/{category:slug}/{post:slug}', [PostController::class, 'show'])
251243
You can add the linkpicker field to your resource like this:
252244

253245
```php
254-
use Codedor\LinkPicker\Filament\LinkPickerInput;
246+
use Wotz\LinkPicker\Filament\LinkPickerInput;
255247

256248
public static function form(Form $form): Form
257249
{

resources/css/plugin.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/Facades/LinkCollection.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
<?php
22

3-
namespace Codedor\LinkPicker\Facades;
3+
namespace Wotz\LinkPicker\Facades;
44

55
use Illuminate\Support\Facades\Facade;
66

77
/**
8-
* @method static \Codedor\LinkPicker\LinkCollection routes()
9-
* @method static null | \Codedor\LinkPicker\Link route(string $routeName)
10-
* @method static null | \Codedor\LinkPicker\Link cleanRoute(string $routeName)
11-
* @method static \Codedor\LinkPicker\LinkCollection addLink(\Codedor\LinkPicker\Link $link)
12-
* @method static \Codedor\LinkPicker\LinkCollection addGroup(string $group, iterable $links)
13-
* @method static \Codedor\LinkPicker\Link|null firstByCleanRouteName(string $routeName)
8+
* @method static \Wotz\LinkPicker\LinkCollection routes()
9+
* @method static null | \Wotz\LinkPicker\Link route(string $routeName)
10+
* @method static null | \Wotz\LinkPicker\Link cleanRoute(string $routeName)
11+
* @method static \Wotz\LinkPicker\LinkCollection addLink(\Wotz\LinkPicker\Link $link)
12+
* @method static \Wotz\LinkPicker\LinkCollection addGroup(string $group, iterable $links)
13+
* @method static \Wotz\LinkPicker\Link|null firstByCleanRouteName(string $routeName)
1414
*
15-
* @see \Codedor\LinkPicker\LinkCollection
15+
* @see \Wotz\LinkPicker\LinkCollection
1616
*/
1717
class LinkCollection extends Facade
1818
{
1919
protected static function getFacadeAccessor()
2020
{
21-
return \Codedor\LinkPicker\LinkCollection::class;
21+
return \Wotz\LinkPicker\LinkCollection::class;
2222
}
2323
}

src/Filament/LinkPickerInput.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace Codedor\LinkPicker\Filament;
3+
namespace Wotz\LinkPicker\Filament;
44

5-
use Codedor\LinkPicker\Facades\LinkCollection;
6-
use Codedor\LinkPicker\Link;
7-
use Codedor\LocaleCollection\Facades\LocaleCollection;
5+
use Wotz\LinkPicker\Facades\LinkCollection;
6+
use Wotz\LinkPicker\Link;
7+
use Wotz\LocaleCollection\Facades\LocaleCollection;
88
use Filament\Forms\Components\Checkbox;
99
use Filament\Forms\Components\Field;
1010
use Filament\Forms\Components\Select;

0 commit comments

Comments
 (0)