Download the PHP package ministrare/laravel-core-package without Composer
On this page you can find all versions of the php package ministrare/laravel-core-package. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-core-package
Laravel Core Package
This laravel core package holds my personal tools for laravel 5.8. \ It contains the following:
- Form
- Method
- Input
- Input types
- Checkbox
- Password
- Radio buttons
- Select
- String
- Textarea
- Chaining function
- Render
- Input types
- End
- Utilities
- createSlug
- keyExists
Form
The Form class is supported by a Facade allowing static access to all functions. The Form class contains 3 major elements:
- Method
- Input
- End
Method
Example usage:
The 'Method' function echo`s the HTML form element with the element. \ The function requires 2 parameters: , .
Input
- Input types
- Chaining function
Example:
The function create`s a HTML form input field. \ The function requires minimal 1 parameter: Type. \ The other parameters like: string , string and array are optional. \ Possible type options:
Input Types
- Checkbox
- Password
- Radio buttons
- Select
- String
- Textarea
Checkbox
! Still under development !
Example usage:
Example usage:
Password
Example usage:
Radio buttons
Example usage:
Select
Example usage:
String
Example usage:
Textarea
Example usage:
Chaining functions
Most parameters can be overwritten after they are first set. This is possible by chaining multiple set functions. \ This allows easy usage/overwrites by overwriting most important parameters true there own set function. All set functions are displayed below in there proper order:
Render
The function allows all the given options to be parsed into a view. The view will not be loaded without the function and therefor a important function within the chain.
End
Example usage:
The function echo`s the HTML closing form tag. \ The function has no parameters.
Go Back Up
Utilities
The Utilities class is supported by a Facade allowing static access to all functions. The Utilities class contains 2 major elements:
- createSlug
- keyExists
createSlug
A slug is a HTML/mysql friendly string. Example usage:
It removes unwanted spaces and replaces them with a (_) underscore. This function is used to create a slug used for the name parameter of a HTML input element.
keyExists
Example usage:
A function to find a key inside a array and returns key.
Go Back Up