ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
Add PATH to ~/.bash_profile
and ~/.zshrc
export PATH=/usr/local/bin:$PATH
These steps should have been mentioned in the prerequisites of the Laravel Installation Guide, since I'm surely not the only person trying to get Laravel running on macOS.
Install Mcrypt using Homebrew and PECL (comes with PHP)
# PHP 7.3
codestyle.co examples |
-- This code comes from https://gist.github.com/oliveratgithub/ | |
-- Open in AppleScript Editor and save as Application | |
-- ------------------------------------------------------------ | |
--this is required to break the filename into pieces (separate name and extension) | |
set text item delimiters to "." | |
tell application "Finder" | |
set all_files to every item of (choose file with prompt "Choose the Files you'd like to rename:" with multiple selections allowed) as list | |
display dialog "New file name:" default answer "" | |
set new_name to text returned of result | |
--now we start looping through all selected files. 'index' is our counter that we initially set to 1 and then count up with every file. |
## | |
# WHOIS servers for new TLDs (http://www.iana.org/domains/root/db) | |
# Current as of 2017-12-10 UTC | |
## | |
\.aarp$ whois.nic.aarp | |
\.abarth$ whois.afilias-srs.net | |
\.abbott$ whois.afilias-srs.net | |
\.abbvie$ whois.afilias-srs.net | |
\.abc$ whois.nic.abc |
#!/bin/sh | |
filename="$1" | |
extension=${filename##*.} | |
if [ ${extension} = "doc" ] | |
then | |
# Use cat doc for older document formats | |
catdoc "$filename" | |
else |
brew update
brew tap josegonzalez/php
brew install php54-mcrypt --without-homebrew-php
(php54 => php 5.4.x ; php54 => php 5.3.x, etc ...)extension="/usr/local/Cellar/php54-mcrypt/5.4.24/mcrypt.so"
<?php | |
/** | |
* Description of VideoStream | |
* | |
* @author Rana | |
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial | |
*/ | |
class VideoStream | |
{ | |
private $path = ""; |
<?php namespace Dimsav\Translatable\Test\Model; | |
use Dimsav\Translatable\Translatable; | |
use Illuminate\Database\Eloquent\Model as Eloquent; | |
use LaravelBook\Ardent\Ardent; | |
class Country extends Ardent { | |
use Translatable { | |
Translatable::save as translatableSave; |