Laravel is updated from version 6.x to 10.x, the latest LTS(LTS is even, non-LTS is odd).
Frontend tooling(JavaScript, CSS libraries like Bootstrap), and the build tools for that have been changed from laravel-mix(essentially deprecated) to Vite, which is what Laravel uses at this point to reference and generate frontend assets.
It removes the migrations and seeders for data that is taken care of already by the sql-setup files under the root's db folder.
Because of this, I had to add db/setup-vagrant.sql because vagrant cannot reference files it doesn't know about in its setup shell scripts. So things like source somefile.sql in an sql file doesn't work. It's basically the same as setup.sql except that the source ... is removed.
The dev-install.sh script is updated to change mysqld to mysql in the database service start portion, because mysqld was not working/erroring out for me (in 12d6397f9ed6eeab0b805390a48ca571e6a98427 ).
The dev-install.sh script is also updated to account for vagrant, if it exists, by checking for the existence of ~/code/db/setup-vagrant.sql, a file that would/should only exist at that path if vagrant/laravel-homestead is used. If it exists otherwise, please let me know and I'll fix it.
The dev-install.sh script didn't exit if there was an error with the mysql setup scripts. Now it does, following the example set by the above statements.
The coloration in the dev-install.sh script is altered to terminate at line ending so the color doesn't bleed over to the next line.
Of note, while I updated the admin side of things in regards to Laravel, I did not actually test the install script that the admin side makes use of. I did not test it because, due to the setup.sql file and related files, I didn't have to really make all that many changes to migrations and seeders, aside from removing a great deal of them as they are now deprecated because of the dev-install.sh script.
Additionally, this PR also adds recommended Visual Studio Code extensions for the php side of development, and configuration files for said development, trying to follow the contributing guidelines(things like a code fixer that is based on PSR12 for example). This is in a18b192126ac94a247a2da38d7d4dad56fc560ef
Lastly, for laravel/homestead, the default url is now configured to be admin.riftshadow.dev to cause less mix-ups when working on the admin side of things. If using laravel/homestead, please update your hosts file accordingly, if a change is needed.
This pull updates a few things. Notably:
sql-setup
files under the root's db folder.db/setup-vagrant.sql
because vagrant cannot reference files it doesn't know about in its setup shell scripts. So things likesource somefile.sql
in an sql file doesn't work. It's basically the same assetup.sql
except that thesource ...
is removed.dev-install.sh
script is updated to changemysqld
tomysql
in the database service start portion, becausemysqld
was not working/erroring out for me (in 12d6397f9ed6eeab0b805390a48ca571e6a98427 ).dev-install.sh
script is also updated to account for vagrant, if it exists, by checking for the existence of~/code/db/setup-vagrant.sql
, a file that would/should only exist at that path if vagrant/laravel-homestead is used. If it exists otherwise, please let me know and I'll fix it.dev-install.sh
script didn't exit if there was an error with the mysql setup scripts. Now it does, following the example set by the above statements.dev-install.sh
script is altered to terminate at line ending so the color doesn't bleed over to the next line.Of note, while I updated the admin side of things in regards to Laravel, I did not actually test the install script that the admin side makes use of. I did not test it because, due to the
setup.sql
file and related files, I didn't have to really make all that many changes to migrations and seeders, aside from removing a great deal of them as they are now deprecated because of thedev-install.sh
script.Additionally, this PR also adds recommended Visual Studio Code extensions for the php side of development, and configuration files for said development, trying to follow the contributing guidelines(things like a code fixer that is based on PSR12 for example). This is in a18b192126ac94a247a2da38d7d4dad56fc560ef
Lastly, for
laravel/homestead
, the default url is now configured to beadmin.riftshadow.dev
to cause less mix-ups when working on the admin side of things. If usinglaravel/homestead
, please update your hosts file accordingly, if a change is needed.