Terminal
laravel new {project-name}
Homestead.yaml
| ## System cleanup ## | |
| alias clean='sudo apt-get autoclean --yes && sudo apt-get clean --yes && sudo apt-get autoremove --yes' | |
| ## Update ## | |
| alias update='sudo apt update --yes' | |
| ## Upgrade ## | |
| alias upgrade='sudo apt upgrade --yes' | |
| ## Make directory and parents ## |
| // Color system | |
| // | |
| // This is a collection of Federal Standard Colors | |
| // Information retrieved from https://www.e-paint.co.uk/Federal_standard_595_colour_chart.asp | |
| // | |
| // The L* a* b* (together with the corresponding HLC, RGB and CYMK) values are based on the average of various measurements using various spectrophotometers using D65 light with a standard observer according to CIE 1964 which may be updated or modified by any other relevant available information. | |
| // They are not necessarily the L* a* b* figures intended by any standard and should therefore only be used as a guide. | |
| // The colours depicted are also for guidance only. The displayed colour will depend on your monitor, browser and angle of the screen and pearl or metallic colours cannot be shown adequately. The finished colour, therefore, may not be as shown here. | |
| // The sRGS conversion system used is IEC 61966:2-1 D50 adapted which may differ from other conversions. |
| { | |
| "always_show_minimap_viewport": true, | |
| "bold_folder_labels": true, | |
| "caret_extra_bottom": 5, | |
| "caret_extra_top": 5, | |
| "caret_extra_width": 1, | |
| "caret_style": "phase", | |
| "close_windows_when_empty": false, | |
| "color_scheme": "Packages/Monokai - Spacegray/Monokai - Spacegray.tmTheme", | |
| "copy_with_empty_selection": false, |
| ############### | |
| #Clone project | |
| ############### | |
| git clone <project> | |
| cd <project> | |
| ############################### | |
| #Install Composer dependencies | |
| ############################### |
| # picnorm - normalize picture files by converting webp -> png and jpeg/jfif -> jpg | |
| function picnorm() { | |
| echo "picnorm - normalizing file types" | |
| # set folder to working directory | |
| folder=$(pwd) | |
| # use find to list all files and extensions | |
| extensions=$(find "$folder" -type f | awk -F '.' '{print $NF}' | sort) | |
| # print file type count | |
| echo "Starting count: " |
| php artisan down | |
| git pull | |
| composer install | |
| php artisan migrate | |
| sudo service php8.1-fpm reload |