An open API service indexing awesome lists of open source software.

https://github.com/mcabreradev/laravel-10


https://github.com/mcabreradev/laravel-10

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

Laravel Logo

### 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