docker-compose exec --user = laradock workspace/bin/bash in laradock
If i create a table after entering the container, you will get an error, so I want to be able to execute it safely.

Error message
laradock @ 6008ea0acb4a:/var/www $php artisan make: migration create_books_table --create = books;
Could not open input file: artisan
There are two directories in the

directory: the laradock and laravel projects.
It enters the container after entering laradock with cd.

The OS is mac.

  • Answer # 1

    Check the current directory and file structure with ls and cwd.
    If necessary, use cd to move to the target directory and try again