PHP code example of cerutti-maicon / laravel-activitylog-for-tenancy-for-laravel
1. Go to this page and download the library: Download cerutti-maicon/laravel-activitylog-for-tenancy-for-laravel 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/ */
cerutti-maicon / laravel-activitylog-for-tenancy-for-laravel example snippets
public function getActivitylogOptions()
{
return LogOptions::defaults()
->useLogName('system');
}
bash
php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="activitylog-migrations"
bash
php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="activitylog-config"
bash
php artisan multi_tenants_logs:migrate
bash
php artisan multi_tenants_logs:migrate
bash
php artisan multi_tenants:list
bash
php artisan multi_tenants:migrate
bash
php artisan multi_tenants:seed
bash
php artisan tenants:migrate