Files
nuhodds_fi4/NOTES.md
T
2026-08-31 13:56:04 +02:00

34 lines
1.1 KiB
Markdown

## REMOTE DB SETTING
# make port changes in .env file to forward
# use remote db with mariadb
ssh -L 13306:127.0.0.1:3306 -p 58371 root@162.55.242.190
# use remote db with mongodb
ssh -L 27027:127.0.0.1:27017 -p 58371 root@162.55.242.190
a make:policy SofaScoreCategoryPolicy --model=SofaScoreCategory
importing
https://github.com/christophrumpel/laravel-import-million-rows
https://github.com/spatie/simple-excel
https://csv.thephpleague.com/
MONGODB
model schema
https://www.mongodb.com/docs/drivers/php/laravel-mongodb/v4.x/eloquent-models/schema-builder/
upsert
https://medium.com/@kaamil.mirza.2002/how-i-learned-to-upsert-millions-of-documents-into-mongodb-with-minimal-overhead-8b7f9404a70c
https://www.mongodb.com/docs/manual/reference/method/Bulk.find.upsert/
https://www.mongodb.com/docs/drivers/php/laravel-mongodb/current/fundamentals/write-operations/
CHART
https://icehouse-ventures.github.io/laravel-chartjs/
https://www.chartjs.org/docs/latest/configuration/interactions.html
https://www.sofascore.com/api/v1/unique-tournament/17/season/96668/standings/total
/** @var \App\Models\User */