Best laravel framework open-source packages.

Netlab api

Next Generation Network Laboratory API
Updated 2 years ago

NetLab API

Latest Version on Packagist Total Downloads

This package is an API for creating a Laravel-based network lab.

Installation

  1. Install the package using Composer
composer require vitkuz573/netlab-api
  1. Run the command
php artisan netlab-api:install
  1. Then follow the instructions on the page

  2. Add the HasLaboratories trait to the User model

...
use Vitkuz573\NetlabApi\Concerns\HasLaboratories;

class User extends Authenticatable
{
    use HasLaboratories;
...
  1. Update your AuthServiceProvider.php
...
use App\Policies;
use Vitkuz573\NetlabApi;

class AuthServiceProvider extends ServiceProvider
{
    protected $policies = [
        NetlabApi\Laboratory::class => Policies\LaboratoryPolicy::class,
        NetlabApi\Template::class => Policies\TemplatePolicy::class,
        NetlabApi\Node::class => Policies\NodePolicy::class,
        NetlabApi\Network::class => Policies\NetworkPolicy::class,
        NetlabApi\Connection::class => Policies\ConnectionPolicy::class,
    ];
...
  1. Add the root drive to the config/filesystems.php configuration file
...
'disks' => [
    'root' => [
        'driver' => 'local',
        'root' => public_path(),
    ],
...

Change log

Please see the changelog for more information on what has changed recently.

Testing

composer test

Contributing

Please see CONTRIBUTING.md for details and a todolist.

Security

If you discover any security related issues, please email vitkuz573@gmail.com instead of using the issue tracker.

Credits

License

GNU LGPL v3. Please see the license file for more information.

Other

My other packages can be found in the following repository

Tags network