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\Entities; | |
use Illuminate\Database\Eloquent\Model | |
/** | |
* Class Contact | |
* @package App\Entities | |
*/ |
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
// var objectIsDomElement = function (object) { | |
// return typeof HTMLElement === "object" ? object instanceof HTMLElement : | |
// typeof object === "object" && object.nodeType === 1 && typeof object.nodeName === "string"; | |
// }; | |
// | |
// var getAllDomObjects = function() { | |
// var objs = []; | |
// var walkTheObject = function (obj) { | |
// Object.keys(obj).forEach(function (key) { | |
// var value = objs[key]; |
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
/** | |
* @class AjaxSubmit | |
*/ | |
AjaxSubmit = class | |
{ | |
/** | |
* @type {string} | |
*/ | |
rootUrl = ''; |
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\Overrides\Illuminate\Database\Eloquent; | |
use Carbon\Carbon; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Database\Eloquent\Concerns\HasEvents; | |
use Illuminate\Database\Eloquent\SoftDeletes as BaseSoftDeletes; | |
/** |
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
class AppServiceProvider | |
{ | |
/** | |
* @void | |
*/ | |
protected function boot() | |
{ | |
Relation::macro('setMorphTables', function ($foreignPivotTypeField, $relatedPivotTypeField = null) { | |
/** @var MorphToMany $this */ |
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\Middleware; | |
use Closure; | |
use Illuminate\Support\Arr; | |
use Illuminate\Http\Request; | |
use InvalidArgumentException; | |
use Illuminate\Routing\Route; | |
use Illuminate\Routing\Router; |
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\Helpers; | |
use Exception; | |
use ReflectionMethod; | |
use ReflectionFunction; | |
use ReflectionException; | |
/** |
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 Tests; | |
use GuzzleHttp\Client; | |
use App\Helpers\DebugTrace; | |
use Illuminate\Support\Arr; | |
use GuzzleHttp\HandlerStack; | |
use GuzzleHttp\Handler\MockHandler; | |
use Psr\Http\Message\RequestInterface; |
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 Tests; | |
use Event; | |
use Mockery; | |
use ReflectionFunction; | |
use Illuminate\Events\Dispatcher; | |
use Illuminate\Support\Collection; | |
use Illuminate\Database\Eloquent\Model; |
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\Middleware; | |
use Closure; | |
use Exception; | |
use RuntimeException; | |
use ReflectionMethod; | |
use ReflectionFunction; | |
use Illuminate\Http\{Request, Response}; |