yormy/translationcaptain-laravel

Tracking of referrals in laravel

0.0.5 2021-11-23 16:57 UTC

This package is auto-updated.

Last update: 2024-04-09 13:45:23 UTC


README

Latest Version on Packagist Total Downloads GitHub Workflow Status Alt text

Installation

You can install the package via composer:

composer require yormy/translationcaptain-laravel

You can publish and run the migrations with:

php artisan vendor:publish --provider="Yormy\TranslationcaptainLaravel\TranslationcaptainLaravelServiceProvider" --tag="migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --provider="Yormy\TranslationcaptainLaravel\TranslationcaptainLaravelServiceProvider" --tag="config"

Setting up config

config/app.php replace:

Illuminate\Translation\TranslationServiceProvider::class

with

Yormy\TranslationcaptainLaravel\Providers\TranslationServiceProvider::class,

Without publishing your views and you use of VUE:

In your app.js

require("./../../vendor/yormy/translationcaptain-laravel/resources/assets/package.js")

rerun

run npm prod

Views publishing

Blade version

php artisan vendor:publish --provider="Yormy\TranslationcaptainLaravel\TranslationcaptainLaravelServiceProvider" --tag="blade"

Vue version

Note , this needs vuetify v-datatable and v-chip

php artisan vendor:publish --provider="Yormy\TranslationcaptainLaravel\TranslationcaptainLaravelServiceProvider" --tag="vue"

in your app.js

require("./../assets/vendor/translationcaptain-laravel/package")

rerun

run npm prod

Register your routes

User routes

For referrers to see their own statistics Make sure you publish these routes within your authentication middleware

Route::TranslationcaptainLaravelUser('translationcaptain-laravel');

This makes the routes available as /translationcaptain-laravel/details

Admin routes

Your admin routes to see the referrers overview Make sure you publish these routes within your authentication middleware

Route::TranslationcaptainLaravelAdmin('translationcaptain-laravel');

This makes the routes available as /translationcaptain-laravel/referrers

Usage

$translationcaptain-laravel = new Yormy\TranslationcaptainLaravel();
echo $translationcaptain-laravel->echoPhrase('Hello, Yormy!');

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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