NetLab API
This package is an API for creating a Laravel-based network lab.
Installation
- Install the package using Composer
composer require vitkuz573/netlab-api
- Run the command
php artisan netlab-api:install
-
Then follow the instructions on the page
-
Add the HasLaboratories trait to the User model
...
use Vitkuz573\NetlabApi\Concerns\HasLaboratories;
class User extends Authenticatable
{
use HasLaboratories;
...
- 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,
];
...
- 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