Never run on auto-pilot. Constantly be thinking, critiquing your work in real time.
We who cut mere stones must always be envisioning cathedrals.
<?php | |
namespace App\Providers; | |
use App\Repositories\CategoryRepositoryInterface; | |
use App\Repositories\Eloquent\BaseRepository; | |
use App\Repositories\Eloquent\CategoryRepository; | |
use App\Repositories\Eloquent\EloquentRepositoryInterface; | |
use App\Repositories\Eloquent\QuoteRepository; | |
use App\Repositories\QuoteRepositoryInterface; |
<?php | |
namespace App\Repositories\Eloquent; | |
use Illuminate\Database\Eloquent\Model; | |
/** | |
* Interface EloquentRepositoryInterface | |
* @package App\Repositories\Eloquent | |
*/ |
<?php | |
namespace App\Repositories; | |
/** | |
* Interface QuoteRepositoryInterface | |
* @package App\Repositories | |
*/ | |
interface QuoteRepositoryInterface | |
{ |
<?php | |
namespace App\Repositories\Eloquent; | |
use Illuminate\Database\Eloquent\Model; | |
/** | |
* Class BaseRepository | |
* @package App\Repositories\Eloquent | |
*/ |
<?php | |
namespace App\Repositories\Eloquent; | |
use App\Model\Message; | |
use App\Model\Quote; | |
use App\Repositories\QuoteRepositoryInterface; | |
use Illuminate\Database\Eloquent\Builder; | |
use Illuminate\Database\Eloquent\Collection; | |
use Illuminate\Database\Eloquent\Model; |
// https://stackoverflow.com/a/29022400/155905 | |
// Call this at each point of interest, passing a descriptive string | |
function prof_flag($str) | |
{ | |
global $prof_timing, $prof_names; | |
$prof_timing[] = microtime(true); | |
$prof_names[] = $str; | |
} |
; This file is for unifying the coding style for different editors and IDEs. | |
; More information at http://editorconfig.org | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 4 | |
end_of_line = lf | |
insert_final_newline = true |
<?php | |
namespace App\Services\Dto; | |
abstract class AbstractDto | |
{ | |
/** | |
* AbstractRequestDto constructor. | |
* @param array $data | |
*/ |
<?php | |
/** | |
* Class UnsafeClientIpProvider | |
*/ | |
class UnsafeClientIpProvider | |
{ | |
/** | |
* @var array |