rockapps/rk-laravel

lorem ipsum

5.9.599 2022-10-18 18:45 UTC

This package is auto-updated.

Last update: 2024-03-29 18:33:16 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.