Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Hwa Meta Laravel Package

hwavina/hwa-meta

View on GitHub
Deep Wiki
Context7

About

hwa-meta is a meta package. It helps us to build and develop faster with pre-built functions. This saves a lot of time on future projects.

We share this package to give programmers an extra useful library. We hope people use this package not for commercialization or profit of any kind.

And finally, hope to receive more contributions and shares from all of you.

Thank you very much 🧡

Install

  1. You can install the package via composer:
composer require hwavina/hwa-meta
  1. Optional: The service provider will automatically get registered. Or you may manually add the service provider in your config/app.php file:
'providers' => array(
    // ...
    Hwavina\HwaMeta\HwaMetaServiceProvider::class,
);
  1. You can customize the config/hwa_meta.php config file . If you customize file config/hwa_meta.php. You need to run the command below to clear cache and update the changes.
php artisan config:cache

# or

php artisan optimize:clear

Default config file contents

You can view the default config file contents at:

https://github.com/hwavina/hwa-meta/blob/main/config/hwa_meta.php

Usage

MetaTools

This tool helps you to easily manage the extended data fields of certain objects.

  1. Create Meta Class with command.

Example: We need CustomerMeta. This tools help us make model file and migration file.

php artisan hwa:make:meta Customer -m

The above command we have added -m to create the migration file.

  1. Add allow type to config/hwa_meta.php
'allow_type' => [
    .....
    'customer' => ['id', 'customer_id'],
],
  1. You need to run the command below to clear cache and update the changes.
php artisan config:cache

# or

php artisan optimize:clear
  1. Run command to migrate the meta migration file to database
php artisan migrate

After completing the above configuration steps you can use the methods available in the meta model in the classes you want.

// Example
CustomerMeta:_update(1, 'gender', 'male'); // update or add new gender for customer has id is 1

Beside the functions and methods we have built, people can also build their own by inheriting our classes.

Changelog

Please see CHANGELOG for more information what has changed recently.

Security

If you discover a security vulnerability within hwa-meta, please send an e-mail to Phi Hoang via hwavina@gmail.com. All security vulnerabilities will be promptly addressed.

Credits

License

The Laravel framework is open-sourced software licensed under the MIT license.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle