stormyy / b3cod4x
B3 management portal for Cod4x
Installs: 362
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 6
Forks: 4
Open Issues: 1
Type:project
Requires
- php: >=7.0
- doctrine/dbal: ^2.5
- illuminate/console: ~5.4
- illuminate/support: ~5.4
- stormyy/q3tool: ^0.2.1
- torann/geoip: ^1.0
This package is auto-updated.
Last update: 2024-10-28 04:46:30 UTC
README
B3 management system build on laravel with support for cod4x screenshots. Based on the idea of Echelon
Install library in a laravel installation via composer
composer require Stormyy/b3cod4x
Add the service provider in the app.php
Stormyy\B3\B3AddonServiceProvider::class
After that deploy assets by executing
php artisan vendor:publish --provider="Stormyy\B3\B3AddonServiceProvider" --force
Excecute migrations with
php artisan migrate
The library uses the base template from laravel located in resources/views/layouts/app.php
on the bottom of this layout (inside body) add the following:
<script type="text/javascript"> window.pusherinfo = { broadcaster: 'pusher', key: '', cluster: 'eu', encrypted: true, namespace: 'Stormyy\\B3\\Events' } </script> <script type="text/javascript" src="{{asset('vendor/stormyy/b3cod4x/js/b3app.js')}}"></script>
If you want to make use of notifcation/broadcast system see https://laravel.com/docs/5.4/broadcasting and add the pusher information above
Permissions
By default b3cod4x supports authorization with laravel policies. For the default policy you need to claim your ingame player. This is done via a cod4x plugin which you can find in the latest release. You can overwrite this policy class in the b3cod4x config, you can also overwrite the default policy class by binding b3 groups to permissions in the config. Your own b3cod4x policy class has to extend the Stormyy\B3\Policies\B3ServerPolicy