Download the PHP package tomatophp/filament-meta without Composer
On this page you can find all versions of the php package tomatophp/filament-meta. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tomatophp/filament-meta
More information about tomatophp/filament-meta
Files in tomatophp/filament-meta
Package filament-meta
Short Description Convert any model on your app to pluggable model using Meta and get ready to use relation manager on FilamentPHP panel
License MIT
Informations about the package filament-meta
Filament Meta Manager
Convert any model on your app to pluggable model using Meta and get ready to use relation manager on FilamentPHP panel
Screenshots
Installation
after install your package please run this command
on your model you want to use meta on it, just add this trait
now on your Resource you can add meta relation manager like this
Usage
meta trait add ->meta()
method to your model that you can use to get meta data
if the key not exists it will create it for you, if you like to set data it's very easy
if you like to set data null to selected key just pass null as value
the meta accepts array as value
you can set a type for any meta like this
if you like to make the value just string without json input to be indexed you can use key-value
type
then your data will be saved to column key_value
not in value
column
you can make a time series of meta by set a date and time on your meta
if you use the meta for api response or save form data you can have a response
and it can be anything you like be default it's ok
Use Global Hepler
you can use Meta without any users or models, just use this helper
it will return the value of the key if exists, otherwise it will create it for you
Disable Create New meta
publish your config using this command
then go to config/filament-meta.php
and set create
to false
Publish Assets
you can publish config file by use this command
you can publish views file by use this command
you can publish languages file by use this command
you can publish migrations file by use this command
Testing
if you like to run PEST
testing just use this command
Code Style
if you like to fix the code style just use this command
PHPStan
if you like to check the code by PHPStan
just use this command
Other Filament Packages
Checkout our Awesome TomatoPHP
All versions of filament-meta with dependencies
tomatophp/console-helpers Version ^1.1
filament/filament Version ^3.3