ldc-legaulois/README.md
2025-06-20 09:51:29 +02:00

2.1 KiB

Le Gaulois

Optimiser Images

PNG

apt install imagick convert -colors 256 -depth 8 +dither bg-footer-ori.png bg-footer-test.png https://compresspng.com/

Autre

apt install trimage

Copy paste from the admin secure readme.md

Put every min in PROD :

php artisan schedule:run

Unit tests

Create new .env.testing with a new empty database le-gaulois-testing and just run this command :

php artisan test

To see more details, please read the documentation of uwil/unit-tests-laravel

Legend : ✅ test added & operational, ⚠️ test added & operational but modified, ❌ no test (because no CRUD or specific model)

Models list :

✅ ActivityLog
⚠️ Approach (label/demarche)
❌ BlockList
✅ BrandAdvantage
❌ Breeder
✅ Claim
✅ ConsumptionMoment
❌ Customer
❌ DeliveryAddress
✅ DemarcheSlide
❌ DepartaimantsCollection
✅ Discount
❌ GeneralSetting
✅ HistoricalMilestone
❌ IncoNutritionalValue
✅ KeyNumber
✅ MainSlide
✅ Meat
⚠️ MenuNodeData
❌ Message
⚠️ News
✅ NewsBreeding
✅ NewsCategory
⚠️ NewsClub (News/Survey)
✅ NewsCorporate
❌ Notification
✅ Offer
❌ Order
❌ OrderSellItem
✅ Product
✅ ProductType
✅ Profession
✅ Range
✅ Recipe
✅ SellItem
✅ StaticPage
✅ Submeat
✅ Subrange
✅ SurveysAnswer
✅ Testimonial
❌ User
✅ Video

Meilisearch

When deploying, if there any modification to a concerned Model, you may refresh Meilisearch cache. Concerned models are :

  • News
  • NewsBreeding
  • Product
  • Recipe
php artisan scout:flush "\App\Models\News"
php artisan scout:import "\App\Models\News"
php artisan scout:flush "\App\Models\NewsBreeding"
php artisan scout:import "\App\Models\NewsBreeding"
php artisan scout:flush "\App\Models\Product"
php artisan scout:import "\App\Models\Product"
php artisan scout:flush "\App\Models\Recipe"
php artisan scout:import "\App\Models\Recipe"