Compare commits

...

2 Commits

Author SHA1 Message Date
Naser Mansour 42014c458c fixed the issue on auto refresh for widgets 2026-01-17 12:28:25 +02:00
Naser Mansour 71114974ab updated claude md with production info of php-fpm setup 2026-01-17 12:22:32 +02:00
4 changed files with 46 additions and 1 deletions

View File

@ -6,7 +6,37 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
Libra Law Firm is a bilingual (Arabic/English) web platform for managing client consultations, appointments, and case tracking. It serves as both a public-facing website and an internal management tool. Libra Law Firm is a bilingual (Arabic/English) web platform for managing client consultations, appointments, and case tracking. It serves as both a public-facing website and an internal management tool.
**Domain:** libra.ps **Domain:** libra.adv.ps (production), libra.test (local)
## Production Environment
- **Server:** Rocky Linux 9.6 on 69.62.106.94
- **PHP:** 8.4 (use `php84` command, not `php`)
- **Database:** MariaDB/MySQL
### Production Commands
All artisan commands on production require `php84` prefix:
```bash
php84 artisan migrate
php84 artisan config:cache
php84 artisan optimize:clear
```
### Deployment Checklist
```bash
# On production server
composer install --no-dev --optimize-autoloader
php84 artisan migrate --force
php84 artisan optimize:clear
php84 artisan config:cache
php84 artisan route:cache
php84 artisan view:cache
# IMPORTANT: Always restart PHP-FPM after deployment
sudo systemctl restart php84-php-fpm
```
**Note:** The server has both PHP 8.3 and 8.4. Always use `php84` for artisan commands. Failing to restart PHP-FPM can cause cached config issues.
## Development Commands ## Development Commands

View File

@ -5,6 +5,11 @@ use Livewire\Volt\Component;
new class extends Component new class extends Component
{ {
public function refresh(): void
{
// Explicit refresh method for wire:poll compatibility
}
public function with(): array public function with(): array
{ {
return [ return [

View File

@ -5,6 +5,11 @@ use Livewire\Volt\Component;
new class extends Component new class extends Component
{ {
public function refresh(): void
{
// Explicit refresh method for wire:poll compatibility
}
public function with(): array public function with(): array
{ {
return [ return [

View File

@ -5,6 +5,11 @@ use Livewire\Volt\Component;
new class extends Component new class extends Component
{ {
public function refresh(): void
{
// Explicit refresh method for wire:poll compatibility
}
public function with(): array public function with(): array
{ {
return [ return [