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
| # This script will active the license for all IntelliJ products such as | |
| # IntelliJIdea, WebStorm, DataGrip, PhpStorm, ... | |
| #!/bin/bash | |
| for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine Rider; do | |
| echo "Closing $product" | |
| ps aux | grep -i MacOs/$product | cut -d " " -f 5 | xargs kill -9 | |
| echo "Resetting trial period for $product" |
| <?php | |
| /** | |
| * User: matteo.orefice | |
| * Date: 16/02/2018 | |
| * Time: 16:57 | |
| */ | |
| namespace MatteoOrefice\Illuminate\Database\Eloquent\Concerns; |
| -- Adapted from these sources: | |
| -- http://peterdowns.com/posts/open-iterm-finder-service.html | |
| -- https://gist.github.com/cowboy/905546 | |
| -- https://gist.github.com/ttimasdf/7bb02ed419db4b472b534e1a57008a3b | |
| -- | |
| -- Modified to work with files as well, cd-ing to their container folder | |
| on run {input, parameters} | |
| tell application "Finder" | |
| set my_file to first item of input | |
| set is_folder to (do shell script "file -b " & quoted form of (POSIX path of my_file)) |
| # 1. Install brew --> http://brew.sh/ | |
| # 2. run the following commands in your Terminal | |
| brew tap homebrew/dupes | |
| brew tap homebrew/versions | |
| brew tap homebrew/homebrew-php | |
| brew install --with-openssl curl | |
| brew install --with-homebrew-curl --with-apache php71 | |
| brew install php71-mcrypt php71-imagick | |
| # 3. Follow these instructions to make Apache and php-cli use the newer php executable and make the change persist after reboot. | |
| brew info php71 |
| <?php | |
| namespace App; | |
| use Carbon\Carbon; | |
| use Illuminate\Database\Eloquent\Model; | |
| class User extends Model | |
| { | |
| /** |
| <?php | |
| namespace Supawdog\Console\Commands; | |
| use Illuminate\Console\Command; | |
| use Symfony\Component\Process\ProcessUtils; | |
| use Symfony\Component\Console\Input\InputOption; | |
| use Symfony\Component\Process\PhpExecutableFinder; | |
| class WebpackCommand extends Command |
Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.