Skip to content

Instantly share code, notes, and snippets.

View jesseschutt's full-sized avatar
🌲
Working from home

Jesse Schutt jesseschutt

🌲
Working from home
View GitHub Profile
public function test()
{
$mock = Mockery::mock('Illuminate\Contracts\Auth\Guard');
app()->instance('Illuminate\Contracts\Auth\Guard', $mock);
$this->call('POST', 'auth\login', ['email' => '[email protected]', 'password' => 'asasdsdfb']);
$mock->shouldReceive('attempt')->once()->andReturn('false');
}
@jesseschutt
jesseschutt / after.sh
Created January 5, 2015 15:59
Adding Oh-My-ZSH to Homestead
if [ ! -f /usr/local/extra_homestead_software_installed ]; then
echo 'installing some extra software'
#
# install zsh
#
apt-get install zsh -y
#
# install oh my zhs
@jesseschutt
jesseschutt / gist:5f192fefaf87027df5c4
Last active August 29, 2015 14:07
Statamic on Homestead
server {
listen 80;
server_name www.example.com;
root /home/forge/example.com/public;
# FORGE SSL (DO NOT REMOVE!)
# ssl on;
# ssl_certificate;
# ssl_certificate_key;
<VirtualHost *:443>
ServerAdmin *****
ServerName beta.****.us
DocumentRoot /var/www/beta/public
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews