If you do not have Homestead installed you will need to install it in the root of your project
You will need to make sure you create an '.env' file in your project root as well.
composer require laravel/homestead
#!/bin/bash | |
function coloredEcho(){ | |
local exp=$1; | |
local color=$2; | |
if ! [[ $color =~ '^[0-9]$' ]] ; then | |
case $(echo $color | tr '[:upper:]' '[:lower:]') in | |
black) color=0 ;; | |
red) color=1 ;; | |
green) color=2 ;; | |
yellow) color=3 ;; |
#!/bin/bash | |
function coloredEcho(){ | |
local exp=$1; | |
local color=$2; | |
if ! [[ $color =~ '^[0-9]$' ]] ; then | |
case $(echo $color | tr '[:upper:]' '[:lower:]') in | |
black) color=0 ;; | |
red) color=1 ;; | |
green) color=2 ;; | |
yellow) color=3 ;; |
// Gulfile | |
var elixir = require('laravel-elixir'); | |
require('laravel-elixir-vueify'); | |
elixir(function(mix) { | |
mix.sass('all.scss'); | |
mix.browserify('main.js'); | |
}); | |
// LARAVEL 5.1 | |
// composer.json | |
"cartalyst/stripe-billing-laravel": "~3.0" | |
//--------------------- | |
// config/app.php | |
//--------------------- | |
'providers' => [ | |
Cartalyst\Stripe\Billing\Laravel\StripeServiceProvider::class, | |
... |
$>homestead halt | |
$>homestead up --provision |
Another UI piece in CSS. Hover over the stat box for a nice scale etc. This does need tidying up slightly and i will make it responsive at some point so it looks top banana on mobile.
A Pen by Jamie Coulter on CodePen.
Run in local OSX using Global Composer not on the VM | |
$> php -dmemory_limit=-1 /usr/local/bin/composer install |
<script> | |
@if (App::environment('local')) | |
var $el = $("#card-number"); | |
window.stripeData = { | |
valid: function() { | |
$el.val('4242424242424242'); | |
}, | |
successAddressFail: function() { | |
$el.val('4000000000000028'); | |
}, |
Hi. | |
I was doing the Multi-tenant tutorial and for some reason I keep getting the same error | |
over and over no matter what I do. | |
I've redone the code several times and still get the error: | |
Target [Illuminate\Database\Eloquent\Model] is not instantiable. | |
Which I understand should have something to do with my ServiceProviders and | |
binding them via the app.php file. |