rockapps/rk-laravel

lorem ipsum

This package is auto-updated.

Last update: 2022-05-11 22:35:01 UTC


README

Latest Version on Packagist Build Status Quality Score Total Downloads

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

RockApps Laravel Package

Installation

You can install the package via composer:

composer require rockapps/rk-laravel

Usage

php artisan vendor:publish --provider="RockApps\RkLaravel\RkLaravelServiceProvider" --tag="migrations"

Nova Migration

Criar a nova migration

php artisan make:migration create_campaign_table --table=campaigns

Renomear o arquivo e adicionar a extensão: 2021_09_02_162303_create_campaign_table.php para create_campaign_table.php.stub.

Adicionar no arquivo MigrationTestTrait.php as linhas

include_once __DIR__ . $prefix . '/database/migrations/create_campaign_table.php.stub';
// e
(new \CreateCampaignTable())->up();

Adicionar no arquivo RkLaravelServiceProvider.php no método publishMigration(), o nome da migration create_campaign_table.

Testing

composer test

Security

If you discover any security related issues, please email erick.engelhardt@rockapps.com.br instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.