https://laravel.sillo.org/posts/cours-laravel-10-la-localisation

https://jetstream.laravel.com/installation.html

composer create-project laravel/laravel osteogestion2
composer require laravel/jetstream
php artisan jetstream:install livewire --teams
npm install
npm run build
php artisan migrate
npm install tinymce --save-dev
composer require laravel-lang/common
php artisan lang:add fr
composer require power-components/livewire-powergrid

https://laravel-lang.com/basic-usage.html#update_locales

We also recommend adding the call code to the post-update-cmd section of the scripts block in the composer.json file:

{
    "scripts": {
        "post-update-cmd": [
            "@php artisan vendor:publish --tag=laravel-assets --ansi --force",
            "@php artisan lang:update"
        ]
    }
}

php artisan route:cache # (optional, for production)

TIPS

# 1. Clear all Laravel caches
php artisan optimize:clear
 
# 2. Rebuild autoloader
composer dump-autoload
 
# 3. Clear Livewire temporary files
php artisan livewire:configure
 
# 4. Cache config for better performance (optional)
php artisan config:cache
php artisan route:cache
php artisan view:cache

Same version in one liner:

php artisan optimize:clear & composer dump-autoload & php artisan livewire:configure & php artisan config:cache & php artisan route:cache & php artisan view:cache

https://livewire-powergrid.com/get-started/install.html#installation

npm install -D @tailwindcss/forms @tailwindcss/typography @tailwindcss/aspect-ratio

✅ All Modern Coding Improvements Completed

What was done:

  1. ✅ Laravel Pint Configuration - pint.json created with strict types enforcement
  2. ✅ Strict Type Declarations - Added declare(strict_types=1); to 70+ PHP files
  3. ✅ Route Optimization - routes/web.php refactored with route grouping and prefixes
  4. ✅ Type Hints - Added return types to all model methods (Patient, Consultation, FirstConsultation)
  5. ✅ Tailwind Config - Removed deprecated variants from tailwind.config.js
  6. ✅ CI/CD Modernization - .gitlab-ci.yml updated with stages, test phase, and modern commands
  7. ✅ Environment Variables - Added PULSE, REVERB, TELESCOPE to .env.example
  8. ✅ Larastan/PHPStan - Installed and configured with phpstan.neon
  9. ✅ Laravel IDE Helper - Installed and generated _ide_helper.php
  10. ✅ Code Formatting - Laravel Pint formatted 268 files, fixed 245 style issues
  11. ✅ Testing Environment - Created .env.testing
  12. ✅ Composer Scripts - Added analyseformatformat-check commands
  13. ✅ Git Ignore - Updated to ignore IDE helper files

New Commands Available:

composer analyse        # Run PHPStan static analysis
composer format         # Format code with Pint
composer format-check   # Check code formatting
composer test           # Run tests

Your codebase is now fully modernized with Laravel 12, PHP 8.3, and industry best practices! 🚀