- Laravel 11.51 + PHP 8.4 in backend/
- MySQL 9 connection (DBngin, db: verde)
- Installed Sanctum, Spatie permission/activitylog/model-states,
matanyadaev/laravel-eloquent-spatial
- API routes prefixed /api/v1 in bootstrap/app.php
- Standard response envelope { success, data, message, errors, meta }
via ApiResponse + ApiController base class
- Global exception handlers for validation/auth/not-found/http errors
on api/* routes (always JSON, never redirect to login)
- Extended users migration: uuid, phone+verified_at, role enum
(admin/resident/driver/helper/scanner/store_partner), status,
first/middle/last name, avatar_path, preferred_language, fcm_token,
last_login_at, soft deletes
- User model: HasApiTokens, HasRoles, LogsActivity, SoftDeletes,
role/status constants, auto-uuid on create
- Health endpoint at GET /api/v1/health verifies DB connection
- backend/CLAUDE.md documenting backend conventions
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
53 lines
1.6 KiB
PHP
53 lines
1.6 KiB
PHP
<?php
|
|
|
|
return [
|
|
|
|
/*
|
|
* If set to false, no activities will be saved to the database.
|
|
*/
|
|
'enabled' => env('ACTIVITY_LOGGER_ENABLED', true),
|
|
|
|
/*
|
|
* When the clean-command is executed, all recording activities older than
|
|
* the number of days specified here will be deleted.
|
|
*/
|
|
'delete_records_older_than_days' => 365,
|
|
|
|
/*
|
|
* If no log name is passed to the activity() helper
|
|
* we use this default log name.
|
|
*/
|
|
'default_log_name' => 'default',
|
|
|
|
/*
|
|
* You can specify an auth driver here that gets user models.
|
|
* If this is null we'll use the current Laravel auth driver.
|
|
*/
|
|
'default_auth_driver' => null,
|
|
|
|
/*
|
|
* If set to true, the subject returns soft deleted models.
|
|
*/
|
|
'subject_returns_soft_deleted_models' => false,
|
|
|
|
/*
|
|
* This model will be used to log activity.
|
|
* It should implement the Spatie\Activitylog\Contracts\Activity interface
|
|
* and extend Illuminate\Database\Eloquent\Model.
|
|
*/
|
|
'activity_model' => \Spatie\Activitylog\Models\Activity::class,
|
|
|
|
/*
|
|
* This is the name of the table that will be created by the migration and
|
|
* used by the Activity model shipped with this package.
|
|
*/
|
|
'table_name' => env('ACTIVITY_LOGGER_TABLE_NAME', 'activity_log'),
|
|
|
|
/*
|
|
* This is the database connection that will be used by the migration and
|
|
* the Activity model shipped with this package. In case it's not set
|
|
* Laravel's database.default will be used instead.
|
|
*/
|
|
'database_connection' => env('ACTIVITY_LOGGER_DB_CONNECTION'),
|
|
];
|