Skip to content

Instantly share code, notes, and snippets.

<?php
require_once 'vendor/autoload.php';
class Invoice
{
/**
* @var \Stripe\Invoice;
*/
private $invoice;
#!/bin/bash
# This hook is executed after pull
env;
echo "1" > "${APPLICATION_ROOT}/IS_PROD";
<?php
class Application {
// Ommited
public function registerCoreContainerAliases()
{
foreach ([
'app' => [\Illuminate\Foundation\Application::class, \Illuminate\Contracts\Container\Container::class, \Illuminate\Contracts\Foundation\Application::class, \Psr\Container\ContainerInterface::class],
'auth' => [\Illuminate\Auth\AuthManager::class, \Illuminate\Contracts\Auth\Factory::class],
@rmccullagh
rmccullagh / registerCoreContainerAliases.php
Last active May 28, 2019 13:31
registerCoreContainerAliases.php
<?php
namespace Illuminate\Foundation;
use Closure;
use RuntimeException;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use Illuminate\Http\Request;
use Illuminate\Support\Collection;
use Illuminate\Container\Container;
<?php
namespace App\Http\Api\Site\Progress;
use Illuminate\Support\Facades\Redis;
use Illuminate\Support\Facades\Log;
use App\Http\Api\Constants\AmezmoApi;
use App\Http\Api\BaseApiController;
use App\Http\Api\Site\Progress\Models\ProgressReport;
<?php
namespace App\Http\Api\Site\Progress;
use \Illuminate\Redis\Connections\PhpRedisConnection;
use \Illuminate\Contracts\Routing\ResponseFactory;
use \Psr\Log\LoggerInterface;
use App\Http\Api\Constants\AmezmoApi;
use App\Http\Api\BaseApiController;
<?php
namespace App\Asset;
use Illuminate\Support\Facades\Facade;
class Asset extends Facade
{
/**
* Get the registered name of the component.
<?php
namespace App\Asset;
use App\Asset\AssetManagerInterface;
class AssetManager implements AssetManagerInterface
{
/** @var string */
private $webpackAssetHash;
<?php
// Note this file is stripped down for example purposes
return [
'providers' => [
// Custom service providers are added here
App\Asset\AssetServiceProvider::class
],
/*
<?php
namespace App\Asset;
use Illuminate\Contracts\Foundation\Application;
use App\Asset\AssetManager;
class AssetServiceProvider extends \Illuminate\Support\ServiceProvider
{