jwcobb / laravel-toolkit
A collection of things I use in nearly every Laravel app.
Fund package maintenance!
jwcobb
Requires
- php: ^8.0
- illuminate/contracts: ^8.73|^9.0
- spatie/laravel-package-tools: ^1.11.0
Requires (Dev)
- barryvdh/laravel-ide-helper: ^2.10
- nunomaduro/collision: ^5.10
- nunomaduro/larastan: ^1.0
- orchestra/testbench: ^6.23|^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
- spatie/laravel-ray: ^1.26
This package is auto-updated.
Last update: 2024-11-09 09:11:02 UTC
README
What's included:
- Config
- site (where I like to define miscellaneous stuff related to the app/site)
- Helpers
- Common: General helper functions
- Forms: Things I use when creating
<form>
s - Tickets: Functions used with ticket resale stuff
- Migrations
- Create
email_addresses
table - Create
phone_numbers
table - Create
street_addresses
table
- Create
- Models
- EmailAddress
- PhoneNumber
- Address
- HasPrimary (trait)
- Presenters (uses datacreativa/laravel-presentable)
- EmailAddressPresenter
- PhoneNumberPresenter
- StreetAddressPresenter
Installation
You can install the package via composer:
composer require jwcobb/laravel-toolkit
You can run some interactive scripts to set some things up and install common packages via Composer
php artisan laravel-toolkit:install
You can publish and run the migrations with:
php artisan vendor:publish --tag="toolkit-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="toolkit-config"
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.