Skip to content

Commit cc0358c

Browse files
author
riccardodallavia
committed
wip
1 parent d9a4297 commit cc0358c

22 files changed

+92
-368
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Ask a question
4-
url: https://github.com/:vendor_name/:package_name/discussions/new?category=q-a
4+
url: https://github.com/maize-tech/laravel-prunable-fields/discussions/new?category=q-a
55
about: Ask the community for help
66
- name: Request a feature
7-
url: https://github.com/:vendor_name/:package_name/discussions/new?category=ideas
7+
url: https://github.com/maize-tech/laravel-prunable-fields/discussions/new?category=ideas
88
about: Share ideas for new features
99
- name: Report a security issue
10-
url: https://github.com/:vendor_name/:package_name/security/policy
10+
url: https://github.com/maize-tech/laravel-prunable-fields/security/policy
1111
about: Learn how to notify us for sensitive bugs
1212
- name: Report a bug
13-
url: https://github.com/:vendor_name/:package_name/issues/new
14-
about: Report a reproducable bug
13+
url: https://github.com/maize-tech/laravel-prunable-fields/issues/new
14+
about: Report a reproducible bug

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: '8.1'
19+
php-version: '8.0'
2020
coverage: none
2121

2222
- name: Install composer dependencies

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
os: [ubuntu-latest, windows-latest]
16-
php: [8.1]
16+
php: [8.1, 8.0]
1717
laravel: [9.*]
1818
stability: [prefer-lowest, prefer-stable]
1919
include:

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 `laravel-prunable-fields` 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) 2022 MAIZE SRL <innovation@h-farm.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: 12 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,25 @@
11

2-
[<img src="https://github-ads.s3.eu-central-1.amazonaws.com/support-ukraine.svg?t=1" />](https://supportukrainenow.org)
2+
# Laravel Prunable Fields
33

4-
# :package_description
4+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/maize-tech/laravel-prunable-fields.svg?style=flat-square)](https://packagist.org/packages/maize-tech/laravel-prunable-fields)
5+
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/maize-tech/laravel-prunable-fields/run-tests?label=tests)](https://github.com/maize-tech/laravel-prunable-fields/actions?query=workflow%3Arun-tests+branch%3Amain)
6+
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/maize-tech/laravel-prunable-fields/Check%20&%20fix%20styling?label=code%20style)](https://github.com/maize-tech/laravel-prunable-fields/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
7+
[![Total Downloads](https://img.shields.io/packagist/dt/maize-tech/laravel-prunable-fields.svg?style=flat-square)](https://packagist.org/packages/maize-tech/laravel-prunable-fields)
58

6-
[![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)
7-
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/:vendor_slug/:package_slug/run-tests?label=tests)](https://github.com/:vendor_slug/:package_slug/actions?query=workflow%3Arun-tests+branch%3Amain)
8-
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/:vendor_slug/:package_slug/Check%20&%20fix%20styling?label=code%20style)](https://github.com/:vendor_slug/:package_slug/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
9-
[![Total Downloads](https://img.shields.io/packagist/dt/:vendor_slug/:package_slug.svg?style=flat-square)](https://packagist.org/packages/:vendor_slug/:package_slug)
10-
<!--delete-->
11-
---
12-
This repo can be used to scaffold a Laravel package. Follow these steps to get started:
13-
14-
1. Press the "Use this template" button at the top of this repo to create a new repo with the contents of this skeleton.
15-
2. Run "php ./configure.php" to run a script that will replace all placeholders throughout all the files.
16-
3. Have fun creating your package.
17-
4. If you need help creating a package, consider picking up our <a href="https://laravelpackage.training">Laravel Package Training</a> video course.
18-
---
19-
<!--/delete-->
20-
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
21-
22-
## Support us
23-
24-
[<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)
25-
26-
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).
27-
28-
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).
9+
This package aims to reproduce the Prunable core feature of Laravel to clean column values instead of entire rows.
2910

3011
## Installation
3112

3213
You can install the package via composer:
3314

3415
```bash
35-
composer require :vendor_slug/:package_slug
36-
```
37-
38-
You can publish and run the migrations with:
39-
40-
```bash
41-
php artisan vendor:publish --tag=":package_slug-migrations"
42-
php artisan migrate
16+
composer require maize-tech/laravel-prunable-fields
4317
```
4418

4519
You can publish the config file with:
4620

4721
```bash
48-
php artisan vendor:publish --tag=":package_slug-config"
22+
php artisan vendor:publish --tag="prunable-fields-config"
4923
```
5024

5125
This is the contents of the published config file:
@@ -55,17 +29,11 @@ return [
5529
];
5630
```
5731

58-
Optionally, you can publish the views using
59-
60-
```bash
61-
php artisan vendor:publish --tag=":package_slug-views"
62-
```
63-
6432
## Usage
6533

6634
```php
67-
$variable = new VendorName\Skeleton();
68-
echo $variable->echoPhrase('Hello, VendorName!');
35+
$prunableFields = new Maize\PrunableFields();
36+
echo $prunableFields->echoPhrase('Hello, Maize!');
6937
```
7038

7139
## Testing
@@ -80,15 +48,15 @@ Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed re
8048

8149
## Contributing
8250

83-
Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.
51+
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
8452

8553
## Security Vulnerabilities
8654

8755
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
8856

8957
## Credits
9058

91-
- [:author_name](https://github.com/:author_username)
59+
- [Riccardo Dalla Via](https://github.com/riccardodallavia)
9260
- [All Contributors](../../contributors)
9361

9462
## License

composer.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
{
2-
"name": ":vendor_slug/:package_slug",
3-
"description": ":package_description",
2+
"name": "maize-tech/laravel-prunable-fields",
3+
"description": "Laravel Prunable Fields",
44
"keywords": [
5-
":vendor_name",
5+
"maize-tech",
66
"laravel",
7-
":package_slug"
7+
"laravel-prunable-fields"
88
],
9-
"homepage": "https://github.com/:vendor_slug/:package_slug",
9+
"homepage": "https://github.com/maize-tech/laravel-prunable-fields",
1010
"license": "MIT",
1111
"authors": [
1212
{
13-
"name": ":author_name",
14-
"email": "author@domain.com",
13+
"name": "Riccardo Dalla Via",
14+
"email": "riccardo.dallavia@h-farm.com",
1515
"role": "Developer"
1616
}
1717
],
1818
"require": {
19-
"php": "^8.1",
19+
"php": "^8.0",
2020
"spatie/laravel-package-tools": "^1.9.2",
2121
"illuminate/contracts": "^9.0"
2222
},
@@ -35,13 +35,13 @@
3535
},
3636
"autoload": {
3737
"psr-4": {
38-
"VendorName\\Skeleton\\": "src",
39-
"VendorName\\Skeleton\\Database\\Factories\\": "database/factories"
38+
"Maize\\PrunableFields\\": "src",
39+
"Maize\\PrunableFields\\Database\\Factories\\": "database/factories"
4040
}
4141
},
4242
"autoload-dev": {
4343
"psr-4": {
44-
"VendorName\\Skeleton\\Tests\\": "tests"
44+
"Maize\\PrunableFields\\Tests\\": "tests"
4545
}
4646
},
4747
"scripts": {
@@ -56,10 +56,10 @@
5656
"extra": {
5757
"laravel": {
5858
"providers": [
59-
"VendorName\\Skeleton\\SkeletonServiceProvider"
59+
"Maize\\PrunableFields\\PrunableFieldsServiceProvider"
6060
],
6161
"aliases": {
62-
"Skeleton": "VendorName\\Skeleton\\Facades\\Skeleton"
62+
"PrunableFields": "Maize\\PrunableFields\\Facades\\PrunableFields"
6363
}
6464
}
6565
},

config/prunable-fields.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
// config for Maize/PrunableFields
3+
return [
4+
5+
];

config/skeleton.php

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

0 commit comments

Comments
 (0)