Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update php8.1 #542

Open
wants to merge 12 commits into
base: staging
Choose a base branch
from
2 changes: 1 addition & 1 deletion .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: '7.3'
php-version: '8.1'
extensions: mbstring, dom, fileinfo, mysql
# coverage: xdebug #optional
- uses: actions/checkout@v3
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ You should now have a "Homestead" folder on your machine at `~/Users/You/Homeste
<p>Open the Homestead.yaml file, add a new site and create a database.</p>

```
ip: "192.168.10.10"
ip: "192.168.56.56"
memory: 2048
cpus: 1
provider: virtualbox
Expand Down Expand Up @@ -65,7 +65,7 @@ buckets:
policy: public
```

Next, update your hosts file on your host machine (`sudo nano /etc/hosts` on windows it's `C:\Windows\System32\Drivers\etc\hosts`) and include `192.168.10.10 olm.test`
Next, update your hosts file on your host machine (`sudo nano /etc/hosts` on windows it's `C:\Windows\System32\Drivers\etc\hosts`) and include `192.168.56.56 olm.test`

When you want to boot up the VM, cd into the Homestead folder on your host machine and run `vagrant up`

Expand All @@ -92,9 +92,9 @@ If you would like to contribute something, make a new branch locally `git checko
<p>You might notice there are some websocket errors in the browser. Some operations like adding photos broadcast live events to the client. It's easy to get websockets set up to resolve this.</p>

```
In your .env file, add "WEBSOCKET_BROADCAST_HOST=192.168.10.10"
In your .env file, add "WEBSOCKET_BROADCAST_HOST=192.168.56.56"
In broadcasting.php, change 'host' => env('WEBSOCKET_BROADCAST_HOST')
In one window, run `php artisan websockets:serve --host=192.168.10.10`
In one window, run `php artisan websockets:serve --host=192.168.56.56`
Then, in another window, run `php artisan horizon`
To test it's working, open another window. Open tinker and run event new(\App\Events\UserSignedUp(1));
```
Expand All @@ -107,7 +107,7 @@ tab and in http://olm.test/world/Ireland/County%20Cork/Cork/map

The project uses AWS S3 to store photos on production. On development, however, it uses [Minio](https://laravel.com/docs/8.x/homestead#configuring-minio),
an open source object storage server with an Amazon S3 compatible API. If you copied the .env.example file into .env
you should be able to access the Minio control panel at http://192.168.10.10:9600 (homestead:secretkey).
you should be able to access the Minio control panel at http://192.168.56.56:9600 (homestead:secretkey).
Remember to update the Access Policy to public for your buckets, on the admin panel.
<p>You are now ready to get started!</p>
<p>Have fun and thanks for taking an interest in OpenLitterMap</p>
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
],
"license": "MIT",
"require": {
"php": "^7.3",
"php": "^8.1",
"ext-json": "*",
"abraham/twitteroauth": "^3.1",
"ahmedsaoud31/laravel-permission-to-vuejs": "dev-master",
"anhskohbo/no-captcha": "^3.3",
"benjamincrozat/laravel-dropbox-driver": "^3.0",
"beyondcode/laravel-websockets": "^1.8",
"beyondcode/laravel-websockets": "^1.13.1",
"doctrine/dbal": "^2.10",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^2.0",
Expand All @@ -34,7 +34,7 @@
"maatwebsite/excel": "^3.1",
"pragmarx/firewall": "^2.3",
"predis/predis": "^1.1",
"pusher/pusher-php-server": "~3.0",
"pusher/pusher-php-server": "~7.0",
"schuppo/password-strength": "^2.1",
"spatie/emoji": "^4.0",
"spatie/laravel-backup": "^6.16",
Expand Down
Loading