Skip to content

Commit 6edd265

Browse files
committed
initial logic setup, next up is tests
1 parent d074572 commit 6edd265

37 files changed

Lines changed: 415 additions & 659 deletions

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github: :vendor_name
1+
github: Statix

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Ask a question
4-
url: https://github.com/:vendor_slug/:package_name/discussions/new?category=q-a
4+
url: https://github.com//roles-and-permissions/discussions/new?category=q-a
55
about: Ask the community for help
66
- name: Request a feature
7-
url: https://github.com/:vendor_slug/:package_name/discussions/new?category=ideas
7+
url: https://github.com//roles-and-permissions/discussions/new?category=ideas
88
about: Share ideas for new features
99
- name: Report a security issue
10-
url: https://github.com/:vendor_slug/:package_name/security/policy
10+
url: https://github.com//roles-and-permissions/security/policy
1111
about: Learn how to notify us for sensitive bugs

.github/dependabot.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/dependabot-auto-merge.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/phpstan.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Changelog
22

3-
All notable changes to `:package_name` will be documented in this file.
3+
All notable changes to `roles-and-permissions` will be documented in this file.

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) :vendor_name <author@domain.com>
3+
Copyright (c) Statix <wyatt.castaneda@gmail.com>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 8 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,35 @@
1-
# :package_description
1+
# Sentra for Laravel
22

3-
[![Latest Version on Packagist](https://img.shields.io/packagist/v/:vendor_slug/:package_slug.svg?style=flat-square)](https://packagist.org/packages/:vendor_slug/:package_slug)
4-
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/:vendor_slug/:package_slug/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/:vendor_slug/:package_slug/actions?query=workflow%3Arun-tests+branch%3Amain)
5-
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/:vendor_slug/:package_slug/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/:vendor_slug/:package_slug/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
6-
[![Total Downloads](https://img.shields.io/packagist/dt/:vendor_slug/:package_slug.svg?style=flat-square)](https://packagist.org/packages/:vendor_slug/:package_slug)
7-
<!--delete-->
8-
---
9-
This repo can be used to scaffold a Laravel package. Follow these steps to get started:
3+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/statix/roles-and-permissions.svg?style=flat-square)](https://packagist.org/packages/statix/roles-and-permissions)
104

11-
1. Press the "Use this template" button at the top of this repo to create a new repo with the contents of this skeleton.
12-
2. Run "php ./configure.php" to run a script that will replace all placeholders throughout all the files.
13-
3. Have fun creating your package.
14-
4. If you need help creating a package, consider picking up our <a href="https://laravelpackage.training">Laravel Package Training</a> video course.
15-
---
16-
<!--/delete-->
17-
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
18-
19-
## Support us
20-
21-
[<img src="https://github-ads.s3.eu-central-1.amazonaws.com/:package_name.jpg?t=1" width="419px" />](https://spatie.be/github-ad-click/:package_name)
22-
23-
We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).
24-
25-
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).
5+
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/statix/roles-and-permissions/run-tests?label=tests)]()
266

277
## Installation
288

299
You can install the package via composer:
3010

3111
```bash
32-
composer require :vendor_slug/:package_slug
33-
```
34-
35-
You can publish and run the migrations with:
36-
37-
```bash
38-
php artisan vendor:publish --tag=":package_slug-migrations"
39-
php artisan migrate
12+
composer require statix/sentra
4013
```
4114

4215
You can publish the config file with:
4316

4417
```bash
45-
php artisan vendor:publish --tag=":package_slug-config"
18+
php artisan vendor:publish --tag="sentra"
4619
```
4720

4821
This is the contents of the published config file:
4922

5023
```php
5124
return [
25+
//
5226
];
5327
```
5428

55-
Optionally, you can publish the views using
56-
57-
```bash
58-
php artisan vendor:publish --tag=":package_slug-views"
59-
```
60-
6129
## Usage
6230

6331
```php
64-
$variable = new VendorName\Skeleton();
65-
echo $variable->echoPhrase('Hello, VendorName!');
32+
6633
```
6734

6835
## Testing
@@ -85,7 +52,7 @@ Please review [our security policy](../../security/policy) on how to report secu
8552

8653
## Credits
8754

88-
- [:author_name](https://github.com/:author_username)
55+
- [Wyatt Castaneda](https://github.com/)
8956
- [All Contributors](../../contributors)
9057

9158
## License

composer.json

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,42 @@
11
{
2-
"name": ":vendor_slug/:package_slug",
3-
"description": ":package_description",
2+
"name": "statix/sentra",
3+
"description": "This is my package roles-and-permissions",
44
"keywords": [
5-
":vendor_name",
5+
"Statix",
66
"laravel",
7-
":package_slug"
7+
"roles-and-permissions"
88
],
9-
"homepage": "https://github.com/:vendor_slug/:package_slug",
9+
"homepage": "https://github.com/statix-php/sentra",
1010
"license": "MIT",
1111
"authors": [
1212
{
13-
"name": ":author_name",
14-
"email": "author@domain.com",
13+
"name": "Wyatt Castaneda",
14+
"email": "wyatt.castaneda@gmail.com",
1515
"role": "Developer"
1616
}
1717
],
1818
"require": {
19-
"php": "^8.4",
19+
"php": "^8.3",
2020
"spatie/laravel-package-tools": "^1.16",
2121
"illuminate/contracts": "^10.0||^11.0"
2222
},
2323
"require-dev": {
2424
"laravel/pint": "^1.14",
2525
"nunomaduro/collision": "^8.1.1||^7.10.0",
26-
"larastan/larastan": "^2.9",
2726
"orchestra/testbench": "^9.0.0||^8.22.0",
2827
"pestphp/pest": "^3.0",
2928
"pestphp/pest-plugin-arch": "^3.0",
30-
"pestphp/pest-plugin-laravel": "^3.0",
31-
"phpstan/extension-installer": "^1.3",
32-
"phpstan/phpstan-deprecation-rules": "^1.1",
33-
"phpstan/phpstan-phpunit": "^1.3",
34-
"spatie/laravel-ray": "^1.35"
29+
"pestphp/pest-plugin-laravel": "^3.0"
3530
},
3631
"autoload": {
3732
"psr-4": {
38-
"VendorName\\Skeleton\\": "src/",
39-
"VendorName\\Skeleton\\Database\\Factories\\": "database/factories/"
33+
"Statix\\Sentra\\": "src/",
34+
"Statix\\Sentra\\Database\\Factories\\": "database/factories/"
4035
}
4136
},
4237
"autoload-dev": {
4338
"psr-4": {
44-
"VendorName\\Skeleton\\Tests\\": "tests/",
39+
"Statix\\Sentra\\Tests\\": "tests/",
4540
"Workbench\\App\\": "workbench/app/"
4641
}
4742
},
@@ -63,13 +58,13 @@
6358
"extra": {
6459
"laravel": {
6560
"providers": [
66-
"VendorName\\Skeleton\\SkeletonServiceProvider"
61+
"Statix\\Sentra\\SentraServiceProvider"
6762
],
6863
"aliases": {
69-
"Skeleton": "VendorName\\Skeleton\\Facades\\Skeleton"
64+
"Sentra": "Statix\\Sentra\\Facades\\Sentra"
7065
}
7166
}
7267
},
7368
"minimum-stability": "dev",
7469
"prefer-stable": true
75-
}
70+
}

config/sentra.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
return [
4+
5+
/**
6+
* The backed enum class that will be used to define your roles.
7+
*/
8+
'roles_enum' => 'App\Enums\Roles',
9+
10+
/**
11+
* The backed enum class that will be used to define your permissions.
12+
*/
13+
'permissions_enum' => 'App\Enums\Permissions',
14+
15+
];

0 commit comments

Comments
 (0)