Skip to content

Commit

Permalink
filament v3 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Jul 24, 2023
1 parent fd3271b commit c8baaa7
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 57 deletions.
12 changes: 3 additions & 9 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,13 @@ root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2

[*.json]
indent_size = 4

[docker-compose.yml]
indent_size = 4
indent_size = 2
66 changes: 66 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Bug Report
description: Report an Issue or Bug with the Package
title: "[Bug]: "
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
We're sorry to hear you have a problem. Can you help us solve it by providing the following details.
- type: textarea
id: what-happened
attributes:
label: What happened?
description: What did you expect to happen?
placeholder: I cannot currently do X thing because when I do, it breaks X thing.
validations:
required: true
- type: textarea
id: how-to-reproduce
attributes:
label: How to reproduce the bug
description: How did this occur, please add any config values used and provide a set of reliable steps if possible.
placeholder: When I do X I see Y.
validations:
required: true
- type: input
id: package-version
attributes:
label: Package Version
description: What version of our Package are you running? Please be as specific as possible
placeholder: 2.0.0
validations:
required: true
- type: input
id: php-version
attributes:
label: PHP Version
description: What version of PHP are you running? Please be as specific as possible
placeholder: 8.2.0
validations:
required: true
- type: input
id: laravel-version
attributes:
label: Laravel Version
description: What version of Laravel are you running? Please be as specific as possible
placeholder: 9.0.0
validations:
required: true
- type: dropdown
id: operating-systems
attributes:
label: Which operating systems does with happen with?
description: You may select more than one.
multiple: true
options:
- macOS
- Windows
- Linux
- type: textarea
id: notes
attributes:
label: Notes
description: Use this field to provide any other notes that you feel might be relevant to the issue.
validations:
required: false
38 changes: 0 additions & 38 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
"laravel cms",
"filamentphp"
],
"homepage": "https://larazeus.com",
"homepage": "https://larazeus.com/rhea",
"support": {
"issues": "https://github.com/lara-zeus/rhea/issues",
"source": "https://github.com/lara-zeus/rhea"
},
"license": "MIT",
"type": "library",
"authors": [
Expand Down
6 changes: 3 additions & 3 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ includes:
- phpstan-baseline.neon

parameters:
level: 4
level: 6
paths:
- src
- config
- database
- tests
tmpDir: build/phpstan
checkOctaneCompatibility: true
checkModelProperties: true
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false

5 changes: 4 additions & 1 deletion pint.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"spacing": "one"
},
"method_argument_space": true,
"single_trait_insert_per_statement": true
"single_trait_insert_per_statement": true,
"types_spaces": {
"space": "single"
}
}
}
7 changes: 2 additions & 5 deletions src/RheaServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@

class RheaServiceProvider extends PackageServiceProvider
{
public function packageBooted(): void
{
CoreServiceProvider::setThemePath('rhea');
}
public static string $name = 'zeus-rhea';

public function configurePackage(Package $package): void
{
$package
->name('zeus-rhea')
->name(static::$name)
->hasViews('zeus')
->hasConfigFile();
}
Expand Down

0 comments on commit c8baaa7

Please sign in to comment.