Skip to content

Commit

Permalink
Merge pull request #286 from ysknsid25/master
Browse files Browse the repository at this point in the history
About Apple Sillicon
  • Loading branch information
jsdecena committed Aug 29, 2022
2 parents 8ba400f + 7ce2050 commit 6ec3495
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ See full [documentation](https://jsdecena.github.io/laracom)
### In your teminal, issue these commands

- RUN `docker-compose up -d --build`
- If your runtime is apple silicon, use `docker-compose -f docker-compose-m1.yml up -d --build` command
- RUN `docker exec -it app bash`
- Inside the container, run `composer install && chmod -R 777 storage/ bootstrap/cache/`
- Inside the container, run `php artisan migrate --seed`
Expand Down
52 changes: 52 additions & 0 deletions docker-compose-m1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
version: '3'
services:
app:
build: .
container_name: app
restart: unless-stopped
tty: true
environment:
SERVICE_NAME: app-api
SERVICE_TAGS: dev
working_dir: /var/www
volumes:
- ./project:/var/www
- ./php/local.ini:/usr/local/etc/php/conf.d/local.ini
networks:
- app-network
webserver:
image: nginx:alpine
container_name: webserver
restart: unless-stopped
tty: true
ports:
- "8000:8000"
volumes:
- ./project:/var/www
- ./nginx/conf.d/:/etc/nginx/conf.d/
networks:
- app-network
db:
image: mysql:5.7
container_name: db
restart: unless-stopped
tty: true
platform: linux/amd64
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: homestead
MYSQL_USER: homestead
MYSQL_ROOT_PASSWORD: secret
SERVICE_TAGS: dev
SERVICE_NAME: mysql
volumes:
- ./dbdata:/var/lib/mysql
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
dbdata:
driver: local
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Shop\OrderStatuses\Requests;

use App\Shop\Base\BaseFormRequest;
use Illuminate\Support\Facades\Log;
use Illuminate\Validation\Rule;

class UpdateOrderStatusRequest extends BaseFormRequest
Expand All @@ -15,7 +16,7 @@ class UpdateOrderStatusRequest extends BaseFormRequest
public function rules()
{
return [
'name' => ['required', Rule::unique('order_statuses')->ignore($this->segment('4'))]
'name' => ['required', Rule::unique('order_statuses')->ignore($this->order_status)]
];
}
}

0 comments on commit 6ec3495

Please sign in to comment.