PHP code example of produpress / laravel-actito

1. Go to this page and download the library: Download produpress/laravel-actito 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/ */

    

produpress / laravel-actito example snippets


//Get a specific profile by Id from the default table (see config)
Actito::profile()->get(123);

//Get a profile from another table and entity.
Actito::profile(8)->entity('AnotherEntity')->get(456);

//Create or update a profile and get the profile Id
$profileId = Actito::profile()->save($profileData);

//Get list of profile tables
Actito::profile()->tables();

//Get the schema of a profile table with the profile table id
Actito::profile(8)->schema();

//Get list of custom tables
Actito::customTable()->tables();

//Get the schema of a custom table witht he custome table id
Actito::customTable('109675e9-429e-954d-a50f-9e806d70a6ca')->schema();
bash
php artisan actito:install