Wes Winham [email protected]
There are many tutorials floating around the web that almost get you a dynamic VPN in EC2. The goal of this tutorial is to be a one-stop-shop for this specific setup.
Wes Winham [email protected]
There are many tutorials floating around the web that almost get you a dynamic VPN in EC2. The goal of this tutorial is to be a one-stop-shop for this specific setup.
<?php | |
/* | |
Plugin Name: Pug Bomb API Endpoint | |
Description: Adds an API endpoint at /api/pugs/$n_pugs | |
Version: 0.1 | |
Author: Brian Fegter | |
Author URL: http://coderrr.com | |
*/ | |
class Pugs_API_Endpoint{ |
<?php | |
/** | |
* JSON data to html table | |
* | |
* @param object $data | |
* | |
*/ | |
function jsonToTable ($data) | |
{ |
<form accept-charset="UTF-8" action="/payment" class="cardInfo" method="post"> | |
<fieldset class="cardInfo__cardDetails"> | |
<div class="form-row cardInfo__cc-num"> | |
<label for="cc-num"><abbr title="required">*</abbr><span>Card Number</span></label> | |
<div class="cc-num__wrap"> | |
<!-- using type="tel" because type="number" doesn’t pass HTML5 form validation with jQuery.payment formatting --> | |
<input id="cc-num" type="tel" class="paymentInput cc-num" placeholder="•••• •••• •••• ••••" autocompletetype="cc-number" required="required"> | |
<span class="card" aria-hidden="true"></span> |
mysqldump -u USER -p -h dev.incuray.com DATABASE > /path/to/output/file/DATABASE.sql; |
-module(richards_crud). | |
-compile(export_all). | |
new() -> | |
maps:new(). | |
build(Key, Value, Map) -> | |
maps:put(Key, Value, Map). |
<form accept-charset="UTF-8" action="/payment" class="cardInfo" method="post"> | |
<fieldset class="cardInfo__cardDetails"> | |
<div class="form-row cardInfo__cc-num"> | |
<label for="cc-num"><abbr title="required">*</abbr><span>Card Number</span></label> | |
<div class="cc-num__wrap"> | |
<!-- using type="tel" because type="number" doesn’t pass HTML5 form validation with jQuery.payment formatting --> | |
<input id="cc-num" type="tel" class="paymentInput cc-num" placeholder="•••• •••• •••• ••••" autocompletetype="cc-number" required="required"> | |
<span class="card" aria-hidden="true"></span> |
<?php | |
namespace App\Providers; | |
use League\Flysystem\Sftp\SftpAdapter; | |
use Storage; | |
use League\Flysystem\Filesystem; | |
use Illuminate\Support\ServiceProvider; | |
/** |
Automatically limit your models to the current team
So you're using spark, and you have teams enabled. You start creating models and want to have them be team specific. Instead of writing, Model::where('team_id', auth()->user()->currentTeam->id)->get();
use this trait to add that behind the scenes so that every time you call on your model, it's assumed that you mean for the current team.
This assumes that the model has a team_id
, while it adds a scope of where team_id = currentTeam->id
.
Note: Implicit Route Model Binding in 5.2, auth session doesn't exist at the point of this trait causing issue. fixed in 5.3
<?php | |
require 'vendor/autoload.php'; | |
use GuzzleHttp\Client; | |
$client = new Client([ | |
'base_uri' => 'http://example.com', | |
]); |