Download the PHP package fatihirday/suffix without Composer
On this page you can find all versions of the php package fatihirday/suffix. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package suffix
Installation
-
Run composer command to install the package
- Publish the config and migration files.
- Response
- To use the suffix list in the package
If you are going to use your own list, you can delete the file migrations/*_create_suffixes_table.php
Configuration
- Config suffixed File
Config | Des |
---|---|
suffixes.table |
suffix list table |
suffixes.code |
suffix column |
suffixes.auto_create_suffixed_tables |
Automatically create suffixes tables when new record is added to suffixes.table table |
suffix_auto_check |
When it wants to work on the attached table, it automatically checks the table. |
merge_operator |
table name and suffix merge operator |
suffix_max_length |
suffix max length. use `null to be unlimited |
- Suffix Model
`
use SuffixList;
for custom model.
Examples
Make migration
1. Insert row to suffixes table
2. Make migration suffixed
3. Run the migrate
Created table demo_fth
4. Make Model
Use Suffixed in your model to access suffixed tables
Use of suffix table
Check suffixed table
Set suffix code
Get suffixed table name
Get suffixed table suffix code
example query
All versions of suffix with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4|^8.0
The package fatihirday/suffix contains the following files
Loading the files please wait ....