A blog series for PHP developers working on larger-than-average Laravel projects
Written for projects with a development lifespan of six to twelve months, with a team of three to six developers working on them simultaneously.
// If the script does not work, you may need to allow same site scripting https://stackoverflow.com/a/50902950 | |
Linkedin = { | |
config: { | |
scrollDelay: 3000, | |
actionDelay: 5000, | |
nextPageDelay: 5000, | |
// set to -1 for no limit | |
maxRequests: -1, | |
totalRequestsSent: 0, |
FROM php:7.4-fpm-alpine | |
WORKDIR /var/www/app | |
RUN apk add bash | |
# intl | |
RUN apk add --quiet zlib-dev icu-dev g++ | |
RUN docker-php-ext-install intl && docker-php-ext-enable intl |
<?php | |
namespace Tests\Feature; | |
use App\User; | |
use Tests\TestCase; | |
use Livewire\Livewire; | |
use Illuminate\Support\Facades\Route; | |
use Illuminate\Foundation\Testing\RefreshDatabase; |
<?php | |
return PhpCsFixer\Config::create() | |
->setRules(array( | |
'@PSR2' => true, | |
'array_indentation' => true, | |
'array_syntax' => array('syntax' => 'short'), | |
'combine_consecutive_unsets' => true, | |
'method_separation' => true, | |
'no_multiline_whitespace_before_semicolons' => true, | |
'single_quote' => true, |
Simple contract or interface, call as you wish: | |
interface UnitOfWork | |
{ | |
public function begin(); | |
public function commit(); | |
public function rollback(); | |
} |
<?php | |
use PhpCsFixer\Config; | |
use PhpCsFixer\Finder; | |
$rules = [ | |
'array_indentation' => true, | |
'array_syntax' => ['syntax' => 'short'], | |
'binary_operator_spaces' => [ | |
'default' => 'single_space', |
{ | |
"Console Log": { | |
"prefix": "cl", | |
"body": "console.log($1);", | |
"description": "Console Log" | |
}, | |
"Named Function": { | |
"prefix": "nfn", | |
"body": ["function ${1:functionName}($2) {", " $3", "}"], | |
"description": "Named Function" |
body { | |
font-family: tahoma; | |
color:#282828; | |
margin: 0px; | |
} | |
.nav-bar { | |
background: linear-gradient(-90deg, #84CF6A, #16C0B0); | |
height: 60px; | |
margin-bottom: 15px; |