Releases: ariaieboy/laravel-sail
1.5.0
1.4.0
1.3.0
v1.2.0
laravel will use laravel-vite instead of laravel-mix in laravel 9. and unlike laravel-mix, it will use:
npm run dev
for development building with watching.
npm run build
for production building.
we have sdev
in our aliases but we didn't have any alias for npm run build
after this commit you can use sbuild
to run npm run build
1.1.0
added 2 new alias for laravel sail:
s cinit
for installing composer dependencies in existing applications using composer docker image.
s ninit
for installing npm packages in existing applications using npm docker image.
when you pull an existing application from remote services like github the composer and npm dependencies are not installed.
for running sail commands you need to install composer dependencies first you need to have php and composer installed on your local machine or you can use this new s cinit
command to install composer deps using docker.
use case of s ninit
with laravel is when you use laravel octane with --watch flag if you don't install the npm packages ,octane gonna crash because the --watch flag is depends on chokedir that is a npm package so you need install npm packages before you want run sail up.
in both commands you can pass the version of the php or node using the second argument:
for example :
s cinit 80
will run composer using php 8.0
and
s ninit 16
will run npm using node 16
by default s cinit
use php 8.1 and s ninit
use node 17