Horje
sail add php mongodb extension Code Example
sail add php mongodb extension
#Step 1 
#edit vendor/laravel/sail/runtimes/[PHP VERSION]/Dockerfile
#Ex: ./vendor/laravel/sail/runtimes/8.1/Dockerfile

#Step 2 
#Add the command at Dockerfile file
RUN apt-get install -y php8.1-mongodb
  
#Step 3 
#Save it and then run ./vendor/bin/sail build and ./vendor/bin/sail up -d
./vendor/bin/sail build && ./vendor/bin/sail up -d

## Tutorials:
# https://developpaper.com/laravel-sail-add-mongodb/




Shell

Related
Yarn .gitignore for Zero Installs Code Example Yarn .gitignore for Zero Installs Code Example
bash suppress error code Code Example bash suppress error code Code Example
grep exclude directory Code Example grep exclude directory Code Example
how to get list of files in zip linux Code Example how to get list of files in zip linux Code Example
for k in range bash Code Example for k in range bash Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12