PHP code example of webid / octools

1. Go to this page and download the library: Download webid/octools library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

webid / octools example snippets


    php artisan vendor:publish --provider="Webid\Octools\OctoolsServiceProvider"
    

    php artisan migrate
    

    php artisan organization:create
    

    php artisan user:create
    

    use WebId\Octools\Traits\HasOrganization;
    
    class User extends Authenticatable
    {
        use HasOrganization;
    }
    

    'models' => [
        'user' => App\Models\User::class,
        'member' => \Webid\Octools\Models\Member::class,
        'application' => \Webid\Octools\Models\Application::class,
        'member_service' => \Webid\Octools\Models\MemberService::class,
        'organization' => \Webid\Octools\Models\Organization::class,
        'workspace' => \Webid\Octools\Models\Workspace::class,
        'workspace_service' => \Webid\Octools\Models\WorkspaceService::class,
    ],