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 Throwable; | |
use PHPUnit\Util\Test; | |
use BadMethodCallException; | |
use Illuminate\Http\Request; | |
use Faker\Generator as Faker; | |
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
#!/usr/bin/env php | |
<?php | |
use Illuminate\Config\Repository;use Illuminate\Encryption\Encrypter;define('LARAVEL_START', microtime(true)); | |
/* | |
|-------------------------------------------------------------------------- | |
| Register The Auto Loader | |
|-------------------------------------------------------------------------- | |
| |
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\Providers; | |
class AppServiceProvider | |
{ | |
public function register() | |
{ | |
$this->registerDev() | |
} |
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 | |
if (!function_exists('associate_models')) { | |
/** | |
* @param Model $model | |
* @param Model $relatedModel | |
* @param string $relationName | |
*/ | |
function associate_models(Model $model, Model $relatedModel, string $relationName) | |
{ |
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 Illuminate\Http\{JsonResponse, RedirectResponse, Request, Response}; | |
/** | |
* Class Debug |
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\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use App\Overrides\Illuminate\Routing\ResponseFactory; | |
use Illuminate\Contracts\View\Factory as ViewFactoryContract; | |
use Illuminate\Contracts\Routing\ResponseFactory as ResponseFactoryContract; | |
/** |
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 Throwable; | |
use GuzzleHttp\Psr7\Uri; | |
use Illuminate\Http\{JsonResponse, RedirectResponse, Request, Response}; | |
/** |
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\Models\Entities; | |
use Str; | |
trait AttributeCamelCase | |
{ | |
/** | |
* @param string $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
<?php | |
namespace App\Models\Data; | |
use BadMethodCallException; | |
use Symfony\Component\Routing\Exception\RouteNotFoundException; | |
/** | |
* @method static string accountRetrieval() | |
* @method static string accountCreation() |
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 Database\Seeders; | |
use Illuminate\Support\Arr; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Support\Facades\{DB, Schema}; | |
/** | |
* @property string|Model $model |