Q:

laravel db not found

export PATH=~/.config/composer/vendor/bin:$PATH

source ~/.bashrc
1
use Illuminate\Support\Facades\DB
0
#these commands executed on Ubunyu 20.04
export PATH=~/.config/composer/vendor/bin:$PATH
source ~/.bashrc
1
echo 'export PATH="~/.config/composer/vendor/bin"' >> ~/.bashrc
# or
echo 'export PATH="~/.config/composer/vendor/bin"' >> ~/.zshrc
1
use Illuminate\Support\Facades\DB;
0

New to Communities?

Join the community