This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use App\Template; | |
class TemplateController extends Controller | |
{ | |
/** | |
* Create a new contract. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SecureJSON | |
{ | |
public $array; | |
public $key; | |
public function __construct(array $array) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ExampleController | |
{ | |
/** | |
* The new way | |
* | |
* @param Transport $transport | |
* @param Package $package | |
* @param Weather $weather |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Container | |
{ | |
protected $target; | |
protected $value; | |
public function __construct($target, $value) | |
{ | |
$this->target = $target; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Throttler; | |
use Illuminate\Cache\RateLimiter; | |
class Throttler | |
{ | |
/** | |
* Target to rate limit. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Throttler; | |
trait ThrottlesCalls | |
{ | |
/** | |
* Throttles the next method call. | |
* | |
* @param int $tries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="{{ config('app.locale') }}"> | |
<head> | |
@include('web.layout.head') | |
</head> | |
<body> | |
<header> | |
@include('web.layout.header') | |
</header> | |
<main> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Enumerate | |
{ | |
/** | |
* Current state of the enumerated object. | |
* | |
* @var string | |
*/ | |
protected $current; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Bindings; | |
class Transport | |
{ | |
/** | |
* Resolve the route bind | |
* | |
* @param string $value |