Developer documentation for the lightweight, PHP-FPM-oriented Bhitti framework.
php run cannot load the frameworkRun Composer first:
composer install
Confirm vendor/autoload.php exists and the application requires sayedsahin/bhitti-framework.
When using cached production configuration:
php run config:cache
Or clear caches:
php run cache:clear
Regenerate the route cache:
php run route:cache
Check:
SESSION_ENABLED=true
SESSION_DRIVER=native
For Redis/Memcached, confirm the required PHP extension and service connection. If sessions are intentionally disabled, Bhitti uses the null session driver on matched web routes.
Verify the named profile in config/database.php and the service’s connection name in cache.php, session.php, or rate_limit.php.
Verify the Memcached PHP extension, host/port, and server configuration under database.memcached.
Set only trusted proxy addresses/ranges:
TRUSTED_PROXIES=10.0.0.0/8
If REMOTE_ADDR is not trusted, Bhitti intentionally ignores forwarded headers.
Current migration tracking no longer requires a checksum column. If an older development database still has a non-null checksum column, recreate or update the migration repository before using the current migration logger.
db:seed skips a fileCheck database/seeders/database.seeder.php. Commented entries are intentionally skipped by full seeding. Run a file explicitly with:
php run db:seed --filename=users
redirect()->to() is local-only. Use:
response()->redirect()->away('https://example.com');