# running

serve: 
`php -d variables_order=GPCS artisan serve`

https://stackoverflow.com/questions/63955357/laravel-failed-to-listen-on-127-0-0-18000-reason

ensure hostingheroes has local IP for DB connection


# resources

auth tutorial that worked
https://kritimyantra.com/blogs/laravel-12-sanctum-setup-user-sign-up-login-and-logout-made-simple



# useful commands

`php artisan make:migration update_logs_table`
`php artisan migrate`


# notes

- dev and deployed currently use same database 
    - this means when I migrate locally, it'll 'just work'
    - if I break it, it breaks prod 

- to run locally, remote db requires local IP access

creating models etc: https://kritimyantra.com/blogs/building-apis-with-laravel-12-a-comprehensive-guide

# deploying

## API

- zip up everything, except .env , node_modules and node_utils


- name zip somethnig like `deploy4.2.3`
- upload zip
- move all files except httaccess and .env to a backup folder
    - site will go offline for this minute
- extract new files
- test using postman/app



# user
SubscriptionID
SubscriptionStatus - 72 paid!

