laravel / sail

Docker files for running a basic Laravel application.
https://laravel.com/docs/sail
MIT License
1.68k stars 476 forks source link

[Bag] pgsql throw an error #694

Closed YevheniiVolosiuk closed 5 months ago

YevheniiVolosiuk commented 5 months ago

Sail Version

1.29

Laravel Version

11.7.0

PHP Version

8.3.4

Operating System

Windows (WSL)

OS Version

10

Description

After installing fresh Laravel 11 and Sail package.

When I run "php artisan migrate" it returns an error

image

image

Also same error on StackOverflow with out answers

Steps To Reproduce

  1. Install the new Laravel 11 project
  2. Install Laravel Sail
  3. Run sail up -d
  4. php artisan migrate
staudenmeir commented 5 months ago

Hi @YevheniiVolosiuk, You need to run Artisan commands inside the Sail Docker container: sail artisan migrate https://laravel.com/docs/11.x/sail#executing-artisan-commands

driesvints commented 5 months ago

Thanks @staudenmeir