diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index dd84ea7..2a51965 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,38 +1,41 @@ --- name: Bug report -about: Create a report to help us improve +about: Create a report to help us improve laravel-settings title: '' labels: '' assignees: '' - --- -**Describe the bug** +**✏️ Describe the bug** A clear and concise description of what the bug is. -**To Reproduce** -Steps to reproduce the behavior: -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error +**↪️ To Reproduce** +Provide us a pest test like this one which shows the problem: -**Expected behavior** -A clear and concise description of what you expected to happen. +```php + +it('cannot save settings', function () { + resolve(SettingsMigrator::class)->inGroup('dummy_simple', function (SettingsBlueprint $blueprint) use ($description, $name): void { + $blueprint->add('name', $name); + $blueprint->add('description', $description); + }); + + $settings = resolve(DummySimpleSettings::class); + $settings->name = 'Nina Simone'; + $settings->save(); -**Screenshots** -If applicable, add screenshots to help explain your problem. + // Property is not changed (off course it is but for documentation purposes it is not) + dd($settings->all()); +}); +``` -**Desktop (please complete the following information):** - - OS: [e.g. iOS] - - Browser [e.g. chrome, safari] - - Version [e.g. 22] +Assertions aren't required, a simple dump or dd statement of what's going wrong is good enough 😄 + +**✅ Expected behavior** +A clear and concise description of what you expected to happen. -**Smartphone (please complete the following information):** - - Device: [e.g. iPhone6] - - OS: [e.g. iOS8.1] - - Browser [e.g. stock browser, safari] - - Version [e.g. 22] +**🖥️ Versions** -**Additional context** -Add any other context about the problem here. +Laravel: +Laravel settings: +PHP: diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index a90d3ae..e32ca1b 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,11 +1,8 @@ blank_issues_enabled: false contact_links: - - name: Ask a Question - url: https://github.com/spatie/laravel-settings/discussions/new?category=q-a - about: Ask the community for help - - name: Feature Request - url: https://github.com/spatie/laravel-settings/discussions/new?category=ideas - about: Share ideas for new features - - name: Bug Report - url: https://github.com/spatie/laravel-settings/issues/new - about: Report a reproducable bug + - name: Ask a question + url: https://github.com/spatie/laravel-settings/discussions/new?category=q-a + about: Ask the community for help + - name: Request a feature + url: https://github.com/spatie/laravel-settings/discussions/new?category=ideas + about: Share ideas for new features