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:cacheSame 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:cachehttps://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:
- ✅ Laravel Pint Configuration - pint.json created with strict types enforcement
- ✅ Strict Type Declarations - Added
declare(strict_types=1);to 70+ PHP files - ✅ Route Optimization - routes/web.php refactored with route grouping and prefixes
- ✅ Type Hints - Added return types to all model methods (Patient, Consultation, FirstConsultation)
- ✅ Tailwind Config - Removed deprecated
variantsfrom tailwind.config.js - ✅ CI/CD Modernization - .gitlab-ci.yml updated with stages, test phase, and modern commands
- ✅ Environment Variables - Added PULSE, REVERB, TELESCOPE to .env.example
- ✅ Larastan/PHPStan - Installed and configured with phpstan.neon
- ✅ Laravel IDE Helper - Installed and generated
_ide_helper.php - ✅ Code Formatting - Laravel Pint formatted 268 files, fixed 245 style issues
- ✅ Testing Environment - Created .env.testing
- ✅ Composer Scripts - Added
analyse,format,format-checkcommands - ✅ 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 testsYour codebase is now fully modernized with Laravel 12, PHP 8.3, and industry best practices! 🚀