Skip to content

Commit a94d50b

Browse files
committed
Refactor Vormkracht10 to Backstage namespace
1 parent eef482a commit a94d50b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+224
-223
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github: vormkracht10
1+
github: Backstage

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Ask a question
4-
url: https://github.com/vormkracht10/filament-fields/discussions/new?category=q-a
4+
url: https://github.com/backstagephp/fields/discussions/new?category=q-a
55
about: Ask the community for help
66
- name: Request a feature
7-
url: https://github.com/vormkracht10/filament-fields/discussions/new?category=ideas
7+
url: https://github.com/backstagephp/fields/discussions/new?category=ideas
88
about: Share ideas for new features
99
- name: Report a security issue
10-
url: https://github.com/vormkracht10/filament-fields/security/policy
10+
url: https://github.com/backstagephp/fields/security/policy
1111
about: Learn how to notify us for sensitive bugs

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Changelog
22

3-
All notable changes to `filament-fields` will be documented in this file.
3+
All notable changes to `fields` will be documented in this file.
44

55
## v0.1.0 - 2025-01-19
66

7-
**Full Changelog**: https://github.com/vormkracht10/filament-fields/commits/v0.1.0
7+
**Full Changelog**: https://github.com/backstagephp/fields/commits/v0.1.0
88

99
## 1.0.0 - 202X-XX-XX
1010

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) vormkracht10 <[email protected]>
3+
Copyright (c) Backstage <[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Filament Fields
1+
# Fields
22

3-
[![Latest Version on Packagist](https://img.shields.io/packagist/v/vormkracht10/filament-fields.svg?style=flat-square)](https://packagist.org/packages/vormkracht10/filament-fields)
4-
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/vormkracht10/filament-fields/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/vormkracht10/filament-fields/actions?query=workflow%3Arun-tests+branch%3Amain)
5-
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/vormkracht10/filament-fields/fix-php-code-styling.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/vormkracht10/filament-fields/actions?query=workflow%3A"Fix+PHP+code+styling"+branch%3Amain)
6-
[![Total Downloads](https://img.shields.io/packagist/dt/vormkracht10/filament-fields.svg?style=flat-square)](https://packagist.org/packages/vormkracht10/filament-fields)
3+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/backstage/fields.svg?style=flat-square)](https://packagist.org/packages/backstage/fields)
4+
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/backstage/fields/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/backstagephp/fields/actions?query=workflow%3Arun-tests+branch%3Amain)
5+
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/backstage/fields/fix-php-code-styling.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/backstagephp/fields/actions?query=workflow%3A"Fix+PHP+code+styling"+branch%3Amain)
6+
[![Total Downloads](https://img.shields.io/packagist/dt/backstage/fields.svg?style=flat-square)](https://packagist.org/packages/backstage/fields)
77

8-
## Nice to meet you, we're [Vormkracht10](https://vormkracht10.nl)
8+
## Nice to meet you, we're [Backstage](https://Backstage.nl)
99

1010
Hi! We are a web development agency from Nijmegen in the Netherlands and we use Laravel for everything: advanced websites with a lot of bells and whitles and large web applications.
1111

@@ -46,18 +46,18 @@ This package is perfect for scenarios where you need to:
4646
You can install the package via composer:
4747

4848
```bash
49-
composer require vormkracht10/filament-fields
49+
composer require backstage/fields
5050
```
5151

5252
You should publish the config file first with:
5353

5454
```bash
55-
php artisan vendor:publish --tag="filament-fields-config"
55+
php artisan vendor:publish --tag="fields-config"
5656
```
5757

58-
This will create a `filament-fields.php` file in your `config` directory. Make sure to fill in the tenant relationship and the tenant model (if you're using multi-tenancy). When running the migrations, the fields table will be created with the correct tenant relationship.
58+
This will create a `fields.php` file in your `config` directory. Make sure to fill in the tenant relationship and the tenant model (if you're using multi-tenancy). When running the migrations, the fields table will be created with the correct tenant relationship.
5959

60-
The content of the `filament-fields.php` file is as follows:
60+
The content of the `fields.php` file is as follows:
6161

6262
```php
6363
<?php
@@ -89,7 +89,7 @@ return [
8989
You can publish and run the migrations with:
9090

9191
```bash
92-
php artisan vendor:publish --tag="filament-fields-migrations"
92+
php artisan vendor:publish --tag="fields-migrations"
9393
php artisan migrate
9494
```
9595

@@ -105,7 +105,7 @@ If you want to use any other column name for the values, you can set the `valueC
105105

106106
```php
107107
use Illuminate\Database\Eloquent\Model;
108-
use Vormkracht10\Fields\Concerns\HasFields;
108+
use Backstage\Fields\Concerns\HasFields;
109109

110110
class Content extends Model
111111
{
@@ -120,7 +120,7 @@ class Content extends Model
120120
To add configurable fields to your related models, we provide a `FieldsRelationManager` that you can add to your resource.
121121

122122
```php
123-
use Vormkracht10\Fields\Filament\RelationManagers\FieldsRelationManager;
123+
use Backstage\Fields\Filament\RelationManagers\FieldsRelationManager;
124124

125125
class ContentResource extends Resource
126126
{
@@ -144,14 +144,14 @@ To make a resource page configurable, you need to add the `CanMapDynamicFields`
144144
```php
145145
<?php
146146

147-
namespace Vormkracht10\Backstage\Resources\ContentResource\Pages;
147+
namespace Backstage\Resources\ContentResource\Pages;
148148

149149
use Filament\Forms\Components\Grid;
150150
use Filament\Forms\Components\Tabs;
151151
use Filament\Forms\Components\Tabs\Tab;
152152
use Filament\Forms\Form;
153153
use Filament\Resources\Pages\EditRecord;
154-
use Vormkracht10\Fields\Concerns\CanMapDynamicFields;
154+
use Backstage\Fields\Concerns\CanMapDynamicFields;
155155

156156
class EditContent extends EditRecord
157157
{
@@ -177,7 +177,7 @@ To conditionally show the fields relation manager, you can override the `canView
177177
namespace App\Filament\Resources\ContentResource\RelationManagers;
178178

179179
use Illuminate\Database\Eloquent\Model;
180-
use Vormkracht10\Fields\Filament\RelationManagers\FieldsRelationManager as RelationManagersFieldsRelationManager;
180+
use Backstage\Fields\Filament\RelationManagers\FieldsRelationManager as RelationManagersFieldsRelationManager;
181181

182182
class FieldsRelationManager extends RelationManagersFieldsRelationManager
183183
{
@@ -211,7 +211,7 @@ class YourCustomPage extends Page
211211

212212
### Add resources as options for select fields
213213

214-
When using select fields, you may want to populate the options with relations in your application. To be able to do this, you need to add the resources to the `filament-fields.selectable_resources` config array. We then get the options from the table that belongs to the resource and model.
214+
When using select fields, you may want to populate the options with relations in your application. To be able to do this, you need to add the resources to the `fields.selectable_resources` config array. We then get the options from the table that belongs to the resource and model.
215215

216216
```php
217217
return [
@@ -229,7 +229,7 @@ return [
229229

230230
### Registering your own fields
231231

232-
To register your own fields, you can add them to the `filament-fields.fields` config array.
232+
To register your own fields, you can add them to the `fields.fields` config array.
233233

234234
```php
235235
'custom_fields' => [
@@ -257,7 +257,7 @@ Please review [our security policy](../../security/policy) on how to report secu
257257

258258
## Credits
259259

260-
- [Baspa](https://github.com/vormkracht10)
260+
- [Baspa](https://github.com/Backstage)
261261
- [All Contributors](../../contributors)
262262

263263
## License

bin/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ const defaultOptions = {
4646
compile({
4747
...defaultOptions,
4848
entryPoints: ['./resources/js/index.js'],
49-
outfile: './resources/dist/filament-fields.js',
49+
outfile: './resources/dist/fields.js',
5050
})

composer.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"name": "vormkracht10/filament-fields",
3-
"description": "This is my package filament-fields",
2+
"name": "backstage/fields",
3+
"description": "This is my package fields",
44
"keywords": [
5-
"vormkracht10",
5+
"backstage",
66
"laravel",
7-
"filament-fields"
7+
"fields"
88
],
9-
"homepage": "https://github.com/vormkracht10/filament-fields",
9+
"homepage": "https://github.com/backstagephp/fields",
1010
"support": {
11-
"issues": "https://github.com/vormkracht10/filament-fields/issues",
12-
"source": "https://github.com/vormkracht10/filament-fields"
11+
"issues": "https://github.com/backstagephp/fields/issues",
12+
"source": "https://github.com/backstagephp/fields"
1313
},
1414
"license": "MIT",
1515
"authors": [
@@ -41,13 +41,13 @@
4141
},
4242
"autoload": {
4343
"psr-4": {
44-
"Vormkracht10\\Fields\\": "src/",
45-
"Vormkracht10\\Fields\\Database\\Factories\\": "database/factories/"
44+
"Backstage\\Fields\\": "src/",
45+
"Backstage\\Fields\\Database\\Factories\\": "database/factories/"
4646
}
4747
},
4848
"autoload-dev": {
4949
"psr-4": {
50-
"Vormkracht10\\Fields\\Tests\\": "tests/"
50+
"Backstage\\Fields\\Tests\\": "tests/"
5151
}
5252
},
5353
"scripts": {
@@ -67,10 +67,10 @@
6767
"extra": {
6868
"laravel": {
6969
"providers": [
70-
"Vormkracht10\\Fields\\FieldsServiceProvider"
70+
"Backstage\\Fields\\FieldsServiceProvider"
7171
],
7272
"aliases": {
73-
"Fields": "Vormkracht10\\Fields\\Facades\\Fields"
73+
"Fields": "Backstage\\Fields\\Facades\\Fields"
7474
}
7575
}
7676
},

database/factories/FieldFactory.php

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

3-
namespace Vormkracht10\Fields\Database\Factories;
3+
namespace Backstage\Fields\Database\Factories;
44

55
use Illuminate\Database\Eloquent\Factories\Factory;
6-
use Vormkracht10\Fields\Models\Field;
6+
use Backstage\Fields\Models\Field;
77

88
class FieldFactory extends Factory
99
{

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"private": true,
33
"type": "module",
44
"scripts": {
5-
"dev:styles": "npx tailwindcss -i resources/css/index.css -o resources/dist/filament-fields.css --postcss --watch",
5+
"dev:styles": "npx tailwindcss -i resources/css/index.css -o resources/dist/fields.css --postcss --watch",
66
"dev:scripts": "node bin/build.js --dev",
7-
"build:styles": "npx tailwindcss -i resources/css/index.css -o resources/dist/filament-fields.css --postcss --minify && npm run purge",
7+
"build:styles": "npx tailwindcss -i resources/css/index.css -o resources/dist/fields.css --postcss --minify && npm run purge",
88
"build:scripts": "node bin/build.js",
9-
"purge": "filament-purge -i resources/dist/filament-fields.css -o resources/dist/filament-fields.css -v 3.x",
9+
"purge": "filament-purge -i resources/dist/fields.css -o resources/dist/fields.css -v 3.x",
1010
"dev": "npm-run-all --parallel dev:*",
1111
"build": "npm-run-all build:*"
1212
},

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
backupStaticProperties="false"
1717
>
1818
<testsuites>
19-
<testsuite name="Vormkracht10 Test Suite">
19+
<testsuite name="Backstage Test Suite">
2020
<directory>tests</directory>
2121
</testsuite>
2222
</testsuites>

0 commit comments

Comments
 (0)