Easily add field hints to Backpack CRUD fields from database comments.
dodsoftware/dynamic-field-hints-for-backpack is a Laravel package for easily add field hints to backpack crud fields from database comments..
It currently has 6 GitHub stars and 157 downloads on Packagist (latest version 1.0.0).
Install it with composer require dodsoftware/dynamic-field-hints-for-backpack.
Discover more Laravel packages by dodsoftware
or browse all Laravel packages to compare alternatives.
Last updated
This package extends the Backpack for Laravel CrudPanel providing the ability to dynamically set the 'hint' value for its CRUD fields by pulling the "comment" for the related column in the database if it exists.
Via Composer
composer require dodsoftware/dynamic-field-hints-for-backpack
If you've disabled Laravel's auto package discovery, you'll need to also add the below to your app's config/app.php file
'providers' => [
// ...
DoDSoftware\DynamicFieldHintsForBackpack\AddonServiceProvider::class,
];
Inside your custom CrudController:
$this->crud->addFields($fields);
$this->crud->setFieldHintsFromColumnComments();
Please see the changelog for more information on what has changed recently.
Please see contributing.md for details and a todolist.
If you discover any security related issues, please email the author instead of using the issue tracker.
MIT. Please see the license file for more information.