Skip to content

Commit f60738b

Browse files
authored
Merge pull request #195 from Laravel-Backpack/main
Update v3 branch
2 parents 5b35eb7 + 679a8bc commit f60738b

Some content is hidden

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

49 files changed

+2274
-296
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: composer
4+
directory: "/"
5+
schedule:
6+
interval: monthly
7+
open-pull-requests-limit: 10

.github/pull_request_template.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## WHY
2+
3+
### BEFORE - What was wrong? What was happening before this PR?
4+
5+
??
6+
7+
### AFTER - What is happening after this PR?
8+
9+
??
10+
11+
12+
## HOW
13+
14+
### How did you achieve that, in technical terms?
15+
16+
??
17+
18+
19+
20+
### Is it a breaking change or non-breaking change?
21+
22+
??
23+
24+
25+
### How can we test the before & after?
26+
27+
??

.github/release-drafter.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- master
8+
9+
jobs:
10+
update_release_draft:
11+
runs-on: ubuntu-latest
12+
steps:
13+
# Drafts your next Release notes as Pull Requests are merged into "master"
14+
- uses: release-drafter/release-drafter@v5
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
18+
name-template: 'v$NEXT_PATCH_VERSION 🌈'
19+
tag-template: 'v$NEXT_PATCH_VERSION'
20+
categories:
21+
- title: '🚀 Features'
22+
labels:
23+
- 'feature'
24+
- 'enhancement'
25+
- 'added'
26+
- title: '🐛 Bug Fixes'
27+
labels:
28+
- 'fix'
29+
- 'bugfix'
30+
- 'bug'
31+
- 'fixed'
32+
- title: '⚙️ Changes'
33+
labels:
34+
- 'changed'
35+
- 'dependencies'
36+
- title: '🧰 Removed'
37+
label: 'removed'
38+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
39+
template: |
40+
## Changes
41+
42+
$CHANGES

.github/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# https://probot.github.io/apps/stale/
55

66
# Number of days of inactivity before an issue becomes stale
7-
daysUntilStale: 60
7+
daysUntilStale: 120
88
# Number of days of inactivity before a stale issue is closed
99
daysUntilClose: 14
1010
# Issues with these labels will never be considered stale

.github/support.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ supportComment: >
1616
1717
Here are all the Backpack communication mediums:
1818
- Long questions (_I have done X and Y and it won't do Z wtf_) - [Stackoverflow](https://stackoverflow.com/questions/tagged/backpack-for-laravel), using the ```backpack-for-laravel``` tag; this is recommended for most questions, since other developers can then find the answer on a simple Google search; also, people get points for answering - and who doesn't like StackOverflow points?!
19-
- Quick help (_How do I do X_) - [Gitter Chatroom](gitter.im/BackpackForLaravel/Lobby);
19+
- Quick help (_How do I do X_) - [Gitter Chatroom](https://gitter.im/BackpackForLaravel/Lobby);
2020
- Bug Reports, Feature Requests - Github Issues (here);
2121
2222
Please keep in mind Backpack offers no official / paid support. Whatever help you receive here, on Gitter, Slack or StackOverflow is thanks to our awesome _awesome_ community members, who give up some of their time to help their peers. If you want to join our community, just start pitching in. We take pride in being a welcoming bunch.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Add new bugs & PRs to This Week project
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
- transferred
8+
pull_request:
9+
types:
10+
- opened
11+
12+
jobs:
13+
add-to-project:
14+
name: Add new bugs and PRs to This Week project
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/add-to-project@main
18+
with:
19+
project-url: https://github.com/orgs/Laravel-Backpack/projects/13
20+
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.idea/
2+
vendor/
3+
node_modules/
4+
.DS_Store
5+
.composer.lock
6+
composer.lock
7+
.phpunit.result.cache

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
language: php
22

33
php:
4-
- 7.0
5-
- 7.1
64
- 7.2
5+
- 7.3
6+
- 7.4
7+
- 8.0
78
- nightly
89

910
matrix:
1011
allow_failures:
1112
- php: nightly
12-
- php: 7.2
13+
- php: 8.0
1314

1415
sudo: false
1516

CHANGELOG.md

Lines changed: 57 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,82 @@
22

33
All Notable changes to `Backpack Generators` will be documented in this file
44

5-
## NEXT - YYYY-MM-DD
5+
------------
6+
IMPORTANT
7+
------------
8+
9+
Starting with version 3, the changelog is kept inside the Releases tab in our this repo's Github page. Please check https://github.com/Laravel-Backpack/Generators/releases
10+
11+
------------
12+
13+
## 2.0.7 - 2020-03-05
14+
15+
### Fixed
16+
- Upgraded PHPUnit;
17+
18+
19+
## 2.0.6 - 2020-01-06
20+
21+
### Fixed
22+
- CrudController typehint;
23+
24+
25+
## 2.0.5 - 2019-11-11
26+
27+
### Fixed
28+
- when generating CRUDs, route name should only have lowercase letters;
29+
30+
31+
## 2.0.4 - 2019-09-28
32+
33+
### Fixed
34+
- removed applyConfigurationFromSettings() call from operation stub, since it's now being called automatically by CrudController, before it reaches that method;
35+
36+
37+
## 2.0.3 - 2019-09-28
38+
39+
### Fixed
40+
- fixed crud command had Class 'Str' not found error in CrudBackpackCommand:53;
41+
- models are now generated with ```$guarded``` instead of ```$fillable``` by default, since the CRUDs now only save what fields have been added by CRUD, not everything that's inside the Request; this should speed up CRUD generation A LOT, by not having to edit the model before you edit the CRUD; it's an opinionated way to do things though - some people prefer $fillable, others $guarded; both work; it's just the default that has changed;
42+
43+
44+
## 2.0.2 - 2019-09-17
645

746
### Added
8-
- Nothing
47+
- command to generate a CRUD operation; ex: ```php artisan backpack:crud-operation Moderate```
948

10-
### Deprecated
11-
- Nothing
49+
50+
## 2.0.1 - 2019-09-12
1251

1352
### Fixed
14-
- Nothing
53+
- it's better for ```setupXxxOperation()``` methods to be ```protected```;
54+
55+
56+
## 2.0.0 - 2019-09-12
57+
58+
### Added
59+
- Backpack v4 support;
60+
- ```php artisan backpack:crud``` now also generates route and sidebar item;
1561

1662
### Removed
17-
- Nothing
63+
- Backpack v3 support;
1864

19-
### Security
20-
- Nothing
65+
66+
------------
2167

2268
## 1.2.7 - 2019-02-27
2369

24-
## Added
70+
### Added
2571
- Backpack\Base 1.1 compatibility;
2672

2773
## 1.2.6 - 2019-01-16
2874

29-
## Added
75+
### Added
3076
- CrudPanel reference to CrudController stb, for IDE code completion;
3177

3278
## 1.2.5 - 2018-11-22
3379

34-
## Added
80+
### Added
3581
- support for Backpack/Base 1.0.0
3682

3783
## 1.2.4 - 2018-08-27

LICENSE.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
# The MIT License (MIT)
1+
MIT License
22

3-
Copyright (c) 2016 Cristian Tone <[email protected]>
3+
Copyright (c) 2022 Cristian Tabacitu
44

5-
> Permission is hereby granted, free of charge, to any person obtaining a copy
6-
> of this software and associated documentation files (the "Software"), to deal
7-
> in the Software without restriction, including without limitation the rights
8-
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
> copies of the Software, and to permit persons to whom the Software is
10-
> furnished to do so, subject to the following conditions:
11-
>
12-
> The above copyright notice and this permission notice shall be included in
13-
> all copies or substantial portions of the Software.
14-
>
15-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21-
> THE SOFTWARE.
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)