Download the PHP package ralphjsmit/laravel-filament-components without Composer
On this page you can find all versions of the php package ralphjsmit/laravel-filament-components. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ralphjsmit/laravel-filament-components
More information about ralphjsmit/laravel-filament-components
Files in ralphjsmit/laravel-filament-components
Package laravel-filament-components
Short Description A collection of reusable components for Filament.
License MIT
Homepage https://github.com/ralphjsmit/laravel-filament-components
Informations about the package laravel-filament-components
A collection of reusable components for Filament.
This package is a collection of handy components for you to use in all your Filament projects. It provides handy components that can be used in almost any project, like sidebars, timestamps & more.
PRs are welcome, so if you've made a handy component yourself, feel free to send a pull request!
Installation
You can install the package via composer:
Usage
Currently, the following components are available:
- Sidebar
- Timestamps
- UpdatedAt
- CreatedAt
- DeletedAt
- Timestamp
Sidebar
You can use the Sidebar
component to split the form into two distinct sections, like a sidebar:
If you're using it in the Admin panel, you can use the Sidebar
in your form()
method:
Sidebars work very nicely with the Section component to define distinct and easily scannable sections in your interface.
Timestamps
Use the Timestamps
component to display a 'Created at' and 'Updated at' timestamp for your record:
The Timestamps
component returns an array with the CreatedAt
and UpdatedAt
components below, so you should use array spreading like in the example to merge the components into your own array.
CreatedAt
Use the CreatedAt
component to display the created_at
timestamp for your record:
UpdatedAt
Use the UpdatedAt
component to display the updated_at
timestamp for your record:
DeletedAt
Use the DeletedAt
component to display the deleted_at
timestamp for your soft-delete record:
Timestamp
Use the Timestamp
component to display a custom timestamp for your record. Internally, all of the above timestamps
use this component.
General
🐞 If you spot a bug, please submit a detailed issue and I'll try to fix it as soon as possible.
🔐 If you discover a vulnerability, please review our security policy.
🙌 If you want to contribute, please submit a pull request. All PRs will be fully credited. If you're unsure whether I'd accept your idea, feel free to contact me!
🙋♂️ Ralph J. Smit
All versions of laravel-filament-components with dependencies
filament/forms Version ^3.0
illuminate/contracts Version ^9.52|^10.0|^11.0
spatie/laravel-package-tools Version ^1.9.2