-
-
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.
- Loading branch information
1 parent
38b0e11
commit be2c758
Showing
44 changed files
with
6,471 additions
and
424 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Ask a question | ||
url: https://github.com/:vendor_name/:package_name/discussions/new?category=q-a | ||
url: https://github.com/Guava/capabilities/discussions/new?category=q-a | ||
about: Ask the community for help | ||
- name: Request a feature | ||
url: https://github.com/:vendor_name/:package_name/discussions/new?category=ideas | ||
url: https://github.com/Guava/capabilities/discussions/new?category=ideas | ||
about: Share ideas for new features | ||
- name: Report a security issue | ||
url: https://github.com/:vendor_name/:package_name/security/policy | ||
url: https://github.com/Guava/capabilities/security/policy | ||
about: Learn how to notify us for sensitive bugs |
This file was deleted.
Oops, something went wrong.
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,3 +1,3 @@ | ||
# Changelog | ||
|
||
All notable changes to `:package_name` will be documented in this file. | ||
All notable changes to `capabilities` will be documented in this file. |
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,6 +1,6 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) :vendor_name <[email protected]> | ||
Copyright (c) Guava <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
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,22 +1,22 @@ | ||
{ | ||
"name": ":vendor_slug/:package_slug", | ||
"description": ":package_description", | ||
"name": "guava/capabilities", | ||
"description": "This is my package capabilities", | ||
"keywords": [ | ||
":vendor_name", | ||
"Guava", | ||
"laravel", | ||
":package_slug" | ||
"capabilities" | ||
], | ||
"homepage": "https://github.com/:vendor_slug/:package_slug", | ||
"homepage": "https://github.com/guava/capabilities", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": ":author_name", | ||
"email": "[email protected]", | ||
"name": "Lukas Frey", | ||
"email": "[email protected]", | ||
"role": "Developer" | ||
} | ||
], | ||
"require": { | ||
"php": "^8.1", | ||
"php": "^8.3", | ||
"spatie/laravel-package-tools": "^1.14.0", | ||
"illuminate/contracts": "^10.0|^11.0" | ||
}, | ||
|
@@ -30,24 +30,24 @@ | |
"pestphp/pest-plugin-laravel": "^2.0", | ||
"phpstan/extension-installer": "^1.1", | ||
"phpstan/phpstan-deprecation-rules": "^1.0", | ||
"phpstan/phpstan-phpunit": "^1.0", | ||
"spatie/laravel-ray": "^1.26" | ||
"phpstan/phpstan-phpunit": "^1.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"VendorName\\Skeleton\\": "src/", | ||
"VendorName\\Skeleton\\Database\\Factories\\": "database/factories/" | ||
"Guava\\Capabilities\\": "src/", | ||
"Guava\\Capabilities\\Database\\Factories\\": "database/factories/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"VendorName\\Skeleton\\Tests\\": "tests/", | ||
"Tests\\": "tests/", | ||
"Tests\\Database\\Factories\\": "tests/Fixtures/database/factories/", | ||
"Workbench\\App\\": "workbench/app/" | ||
} | ||
}, | ||
"scripts": { | ||
"post-autoload-dump": "@composer run prepare", | ||
"clear": "@php vendor/bin/testbench package:purge-skeleton --ansi", | ||
"clear": "@php vendor/bin/testbench package:purge-capabilities --ansi", | ||
"prepare": "@php vendor/bin/testbench package:discover --ansi", | ||
"build": [ | ||
"@composer run prepare", | ||
|
@@ -59,8 +59,8 @@ | |
"@php vendor/bin/testbench serve" | ||
], | ||
"analyse": "vendor/bin/phpstan analyse", | ||
"test": "vendor/bin/pest", | ||
"test-coverage": "vendor/bin/pest --coverage", | ||
"test": "vendor/bin/phpunit", | ||
"coverage": "vendor/bin/phpunit -d xdebug.mode=coverage", | ||
"format": "vendor/bin/pint" | ||
}, | ||
"config": { | ||
|
@@ -73,10 +73,10 @@ | |
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"VendorName\\Skeleton\\SkeletonServiceProvider" | ||
"Guava\\Capabilities\\CapabilitiesServiceProvider" | ||
], | ||
"aliases": { | ||
"Skeleton": "VendorName\\Skeleton\\Facades\\Skeleton" | ||
"Capabilities": "Guava\\Capabilities\\Facades\\Capabilities" | ||
} | ||
} | ||
}, | ||
|
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,12 @@ | ||
<?php | ||
|
||
// config for Guava/Capabilities | ||
return [ | ||
'user_class' => \Illuminate\Foundation\Auth\User::class, | ||
'capability_class' => \Guava\Capabilities\Models\Capability::class, | ||
'role_class' => \Guava\Capabilities\Models\Role::class, | ||
'tenant_class' => null, | ||
|
||
'tenancy' => false, | ||
'tenant_column' => 'tenant_id', | ||
]; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.