-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
laravel pint formatting pint pipeline contribution page
- Loading branch information
Showing
86 changed files
with
754 additions
and
943 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Contributing to laravel-preference | ||
|
||
Any suggestion/contribution is appreciated | ||
|
||
> [!NOTE] | ||
> This is my first "real" open source project. | ||
> In this workflow, things might be missing or plainly wrong/unpractical. Feedback is appreciated | ||
|
||
### Questions? | ||
|
||
For any doubts, questions and suggestions about laravel preference, | ||
or just to see what others are up to, head to the [Discussions](https://github.com/matteoc99/laravel-preference/discussions) section. | ||
|
||
|
||
|
||
### Bug / Feature Request? | ||
|
||
Head over to the Issue Tracker, open an issue and add the respective label | ||
(bug/enhancement) | ||
|
||
|
||
|
||
> [!IMPORTANT] | ||
> Never post a security related problem in the issue tracker | ||
#### Feature Request | ||
|
||
Elaborate on the use case. The Feature will then be incorporated into the Roadmap if it fits the scope of the package | ||
Once accepted, feel free to submit a PR along with the issue. | ||
|
||
#### Bugfixes | ||
|
||
There is no template yet, but consider adding all relevant information | ||
|
||
package version: | ||
php version: | ||
interference with other packages or standalone issue? | ||
Database: | ||
Laravel version: | ||
Is the error reproducible in a minimal configuration? | ||
|
||
For a bug labeled issue, feel free to add your proposed solution in form of a Pull Request | ||
|
||
## PR's | ||
|
||
- create new branch from origin/main | ||
- feature/>ISSUE_ID< | ||
- fix/>ISSUE_ID< | ||
- Add your changes | ||
- Add some tests | ||
- Ensure all test pass: `composer test` | ||
- Ensure the code if formatted correctly: | ||
- to format: `composer pint` | ||
- to test the formatting `composer pint-test` | ||
- push the changes and open a PR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
<?php | ||
|
||
return [ | ||
'db' => [ | ||
'connection' => null, | ||
'preferences_table_name' => 'preferences', | ||
'db' => [ | ||
'connection' => null, | ||
'preferences_table_name' => 'preferences', | ||
'user_preferences_table_name' => 'users_preferences', | ||
], | ||
'xss_cleaning' => true, | ||
'routes' => [ | ||
'enabled' => false, | ||
'routes' => [ | ||
'enabled' => false, | ||
'middlewares' => [ | ||
'web', // required for Auth::user() and policies | ||
'auth', // general middleware | ||
'user' => 'verified', // optional, scoped middleware | ||
'user.general' => 'verified' // optional, scoped & grouped middleware | ||
'user' => 'verified', // optional, scoped middleware | ||
'user.general' => 'verified', // optional, scoped & grouped middleware | ||
], | ||
'prefix' => 'preferences', | ||
'groups' => [ | ||
'prefix' => 'preferences', | ||
'groups' => [ | ||
//enum class list of preferences | ||
//'general'=>General::class | ||
], | ||
'scopes' => [ | ||
'scopes' => [ | ||
// as many preferenceable models as you want | ||
'user' => \Illuminate\Auth\Authenticatable::class | ||
] | ||
] | ||
]; | ||
'user' => \Illuminate\Auth\Authenticatable::class, | ||
], | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"preset": "laravel" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.