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
3213You 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
4519You 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
5125This 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
8755Please 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
0 commit comments