kusikusi/models

Base models used for Kusikusi CMS.

v8.0.0-beta.1 2021-03-15 18:24 UTC

This package is auto-updated.

Last update: 2021-04-27 20:02:35 UTC


README

This is a read-only repository, splitted from the monorepo at github.com/cuatromedios/kusikusi

Software License Travis Total Downloads

Install

composer require kusikusi/models:dev-master

Usage

Publish the assets

  • Publish all the assets ...
    php artisan vendor:publish --provider="Kusikusi\ModelsServiceProvider"
  • Or publish individual assets

    Config

    php artisan vendor:publish --provider="Kusikusi\ModelsServiceProvider" --tag="config"

    Migrations

    php artisan vendor:publish --provider="Kusikusi\ModelsServiceProvider" --tag="migrations"

    Please note the migrations have commented lines you could use to define foreing keys to user tables

    Api routes

    php artisan vendor:publish --provider="Kusikusi\ModelsServiceProvider" --tag="api_routes"

Include the routes

If you need them, include the api routes in your RouteServiceProvider.php file, in the boot method:

Don't forget to secure the routes!

Route::middleware('api')
    ->group(base_path('routes/kusikusi_models_api.php'));
Run the migrations
php artisan migrate

Testing

Run the tests with:

vendor/bin/phpunit

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

Security

If you discover any security-related issues, please email dev@cuatromedios.com instead of using the issue tracker.

License

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