You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,8 +45,6 @@ Some things to consider before submitting an issue
45
45
46
46
## Coding style
47
47
48
-
See our [guidelines](https://guidelines.codedor.be/coding-standards/php).
49
-
50
48
### Laravel Pint
51
49
52
50
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.
Copy file name to clipboardExpand all lines: docs/index.md
+13-21Lines changed: 13 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,27 +5,19 @@
5
5
Install this package using composer:
6
6
7
7
```bash
8
-
composer require codedor/filament-link-picker
8
+
composer require wotz/filament-link-picker
9
9
```
10
10
11
11
In an effort to align with Filament's theming methodology you will need to use a custom theme to use this plugin.
12
12
13
13
> **Note**
14
14
> 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.
15
15
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.
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:
112
104
113
105
```php
114
106
public function anchorList(): array
@@ -122,12 +114,12 @@ public function anchorList(): array
122
114
123
115
## The Link object
124
116
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.
126
118
127
119
For example, adding a label to make your link more readable in Filament:
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:
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:
0 commit comments