Download the PHP package zakariayacine/larainputgenerator without Composer
On this page you can find all versions of the php package zakariayacine/larainputgenerator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zakariayacine/larainputgenerator
More information about zakariayacine/larainputgenerator
Files in zakariayacine/larainputgenerator
Package larainputgenerator
Short Description LaraInputGenerator is a powerful and versatile Laravel package designed to streamline input automation tasks within your Laravel applications. Say goodbye to repetitive and time-consuming form and input generation code. With LaraInputGenerator, you can effortlessly create input forms, validation rules, and more with just a few lines of code, saving you valuable development time and ensuring consistency throughout your projects.
License MIT
Homepage https://github.com/zakariayacine/larainputgenerator
Informations about the package larainputgenerator
LaraInputGenerator
LaraInputGenerator is a Laravel package designed to simplify input automation tasks within your Laravel applications. With LaraInputGenerator, you can effortlessly create input forms, textareas, selects, and file uploads with ease.
Installation
You can install LaraInputGenerator via Composer. Open your terminal and navigate to your Laravel project directory, then run:
To publish the package's assets, including Blade components, run the following command:
This command will make the package's components available for use in your views.
Usage
Input
Parameter | Type | Description |
---|---|---|
label |
string |
Required. Label of the input |
type |
Parameter |
Required. Can be: 'text', 'password', 'email', 'tel', 'number', 'date', 'time', 'datetime-local', 'file', 'checkbox', 'radio' |
name |
string |
Required. The name of the input |
value |
variable |
NOT Required. Value can be a string or an integer |
errors |
variable |
Required. Errors are used in request validation |
Textarea
Parameter | Type | Description |
---|---|---|
label |
string |
Required. Label of the textarea |
name |
string |
Required. The name of the textarea |
value |
variable |
NOT Required. Value can be a string or an integer |
errors |
variable |
Required. Errors are used in request validation |
Select
Parameter | Type | Description |
---|---|---|
label |
string |
Required. Label of the select |
name |
string |
Required. The name of the select |
options |
array |
Required. Example: ['option1' => 'Option 1', 'option2' => 'Option 2'] |
value |
variable |
NOT Required. Value can be a string or an integer |
errors |
variable |
Required. Errors are used in request validation |
fileUpload
Parameter | Type | Description |
---|---|---|
label |
string |
Required. Label of the upload file system |
name |
string |
Required. The name of the upload file system |
accept |
variable |
Required. Example: config('larainputgenerator.uploadImages'), config('larainputgenerator.uploadVideos'), config('larainputgenerator.uploadDocuments'), config('larainputgenerator.uploadAudio'), config('larainputgenerator.uploadAll') |
multiple |
bool |
NOT Required. Value can be a string or an integer |
For more details and advanced usage examples, please refer to the official documentation.
License
This package is open-sourced software licensed under the MIT License.
All versions of larainputgenerator with dependencies
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^10.0