https://github.com/mcabreradev/laravel-10
https://github.com/mcabreradev/laravel-10
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/mcabreradev/laravel-10
- Owner: mcabreradev
- Created: 2023-09-14T20:23:25.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-29T20:23:17.000Z (over 2 years ago)
- Last Synced: 2025-02-07T12:46:45.016Z (over 1 year ago)
- Language: PHP
- Size: 127 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Laravel Sail: How to add executablePath in VSCode Settings
Create a file named 'php' on /usr/local/bin
```bash
sudo touch /usr/local/bin/php
```
Make it executable:
```bash
sudo chmod +x /usr/local/bin/php
```
Edit the file (with sudo) and paste this code:
```bash
path=$(printf '%s\n' "${PWD##*/}")
command="docker exec ${path}-laravel.test-1 php "$@""
echo "Running php on docker ${path}-laravel.test-1"
$command
```
Now just run, example, `php -v` inside the laravel sail project.
Run migration
```bash
sail artisan migrate
```
next