Skip to content

Instantly share code, notes, and snippets.

Avatar

Philip Joyner filljoyner

View GitHub Profile
@filljoyner
filljoyner / DataBag.php
Created Apr 1, 2019
A simple bag of info to prevent making the same calls over and over again
View DataBag.php
<?php
namespace App\Abilities\Components;
class DataBag
{
protected $data;
View DatasetApi.php
<?php
namespace App\Abilities\Capsules;
use GuzzleHttp\Client;
class DatasetApi
{
protected $key;
protected $conn;
@filljoyner
filljoyner / app.php
Last active Oct 11, 2018
Laravel - Change Public Directory
View app.php
<?php
// Replace Application instance with below
// Override public directory with custom application instance
$app = new \App\Abilities\App\Application(
realpath(__DIR__.'/../')
);
@filljoyner
filljoyner / blade.php
Last active Oct 11, 2018
Laravel Delete Link with jQuery
View blade.php
<a href="#" data-delete="{{ route('account.bots.pages.destroy', ['bot_id' => $bot->id, 'id' => $page->id]) }}" class="text-danger">
Delete
</a>
@filljoyner
filljoyner / User Settings
Created Nov 17, 2017
Visual Studio Code - User Settings for Git Bash on Windows 10
View User Settings
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"terminal.integrated.shellArgs.windows": [
"-l",
"-i"
]