laravel-support
laravel-support copied to clipboard
Rinvex common support helpers, contracts, and traits required by various Rinvex packages. Validator functionality, and basic controller included out-of-the-box.
Rinvex Support
Rinvex common support helpers, contracts, and traits required by various Rinvex packages. Validator functionality, and basic controller included out-of-the-box.
Note: this package is just a support package for other Rinvex packages, which may not be useful on it's own, but contains some complementary generic functionality and also may not respect SemVer and break backward compatibility.
Installation
Install via composer require rinvex/laravel-support
Note for Laravel v9
This package requires felixkiss/uniquewith-validator
dependency, which is not yet compatible with Laravel v9! However as a temporary workaround, add Laravel Shift's fork to the repositories
property of your project root composer.json
:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/laravel-shift/uniquewith-validator.git"
}
]
}
Usage
Support Helpers
intend()
The intend
method returns redirect response:
intend([
'route' => 'route.name.here',
'withErrors' => ['error.message.id' => 'A custom error message'],
]);
Note: this helper accepts
redirect
methods as it's input keys, such aswithErrors
,with
,back
, androute
..etc
mimetypes()
The mimetypes
method gets valid mime types:
$mimetypes = mimetypes();
timezones()
The timezones
method gets valid timezones:
$timezones = timezones();
Changelog
Refer to the Changelog for a full history of the project.
Support
The following support channels are available at your fingertips:
- Chat on Slack
- Help on Email
- Follow on Twitter
Contributing & Protocols
Thank you for considering contributing to this project! The contribution guide can be found in CONTRIBUTING.md.
Bug reports, feature requests, and pull requests are very welcome.
- Versioning
- Pull Requests
- Coding Standards
- Feature Requests
- Git Flow
Security Vulnerabilities
If you discover a security vulnerability within this project, please send an e-mail to [email protected]. All security vulnerabilities will be promptly addressed.
About Rinvex
Rinvex is a software solutions startup, specialized in integrated enterprise solutions for SMEs established in Alexandria, Egypt since June 2016. We believe that our drive The Value, The Reach, and The Impact is what differentiates us and unleash the endless possibilities of our philosophy through the power of software. We like to call it Innovation At The Speed Of Life. That’s how we do our share of advancing humanity.
License
This software is released under The MIT License (MIT).
(c) 2016-2022 Rinvex LLC, Some rights reserved.