Valet switch PHP version with these commands
Install PHP 5.6 and switch Valet to PHP 5.6
valet stop
brew unlink php71
brew install php56
brew install php56-mcrypt
| FROM php:7.2-fpm | |
| COPY app /var/www/ | |
| EXPOSE 9000 |
| <?php | |
| /** | |
| * Numbers more readable for humans | |
| * | |
| * It intends to change numbers as 1000 as 1K or 1200000 as 1.2M | |
| * | |
| * This code is heavly base in this one: https://gist.github.com/RadGH/84edff0cc81e6326029c | |
| * | |
| * How to use \NumberFormat::readable(1000); | |
| */ |
| <script> | |
| // an component | |
| import { orderBy, isEmpty } from 'lodash'; | |
| import filterByName from '../helpers/filters/by-name'; | |
| // omit | |
| computed: { | |
| listOrdened() { | |
| const { orderBy as by, order } = this.configs; |
| # The idea of this deployment script is to create a deploy copy of your website and handle | |
| # Git and Composer updates in there. Aferwards, it just renames that deploy copy to become the | |
| # live website. We then run the database migrations and take the application out of maintenance mode. | |
| # Obviously, you will have to replace all instances of {{ websiteName }} with the name of your website and | |
| # {{ branchName }} with the name of the branch you would like to pull changes from. This is usually the master branch. | |
| # Start by checking for for old deployment folder and remove it if we have one. | |
| if [ -d "/home/forge/{{ websiteName }}-deploy" ]; then | |
| rm -Rf /home/forge/{{ websiteName }}-deploy |