I hereby claim:
- I am simonhamp on github.
- I am simonhamp (https://keybase.io/simonhamp) on keybase.
- I have a public key ASAHPdAFANeP0F6wuxEQSZ1pduJknbEHdlTnEIcd6CuB8go
To claim this, I am signing this object:
// Before | |
<h1>FooBar</h1> | |
<?php $foo = 'Foo'; ?> | |
<p>{{ $foo }}</p> | |
// After | |
<h1>FooBar</h1> | |
@include( 'partials/foo', [ 'foo' => 'Foo' ] ) |
<?php | |
trait AuthenticatesUsers { | |
public function getLogin() { | |
if (view()->exists('auth.authenticate')) { | |
return view('auth.authenticate'); | |
} | |
return view('auth.login'); | |
} | |
} |
<?php | |
class Foo { | |
use AuthenticatesUsers { | |
getLogin as login; | |
} | |
public function getLogin() { | |
// Do my stuff | |
return $this->login()->with('myvar', 'Hello World'); | |
} |
I hereby claim:
To claim this, I am signing this object:
"A lot of times, you open up some code for something simple like this, and you find that it is just a massive tangle of unnecessary structure and indirection."
Casey Muratori 2014-05-28 (Retrieved 2018-05-18)
"Frameworks are not tools for organising your code, they are tools for organising your mind."
Rich Harris Code Camp 2019 (Retrieved 2019-04-23)
<?php | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
class BaseModel extends Model | |
{ | |
/** | |
* Override the default boot method to register some extra stuff for every child model. |
<?php | |
namespace Statamic\Addons\MyAddon\Commands; | |
use Statamic\API\Stache; | |
use Statamic\Extend\Command; | |
class StachePrimeCommand extends Command | |
{ | |
/** |
<?php | |
namespace App\Console\Commands; | |
use Cron\CronExpression; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Carbon; | |
use Illuminate\Console\Scheduling\Schedule; | |
class ScheduleListCommand extends Command |
<?php | |
namespace App; | |
use Dotenv\Dotenv; | |
use Illuminate\Support\Str; | |
use Symfony\Component\Process\Process; | |
use Symfony\Component\Process\Exception\ProcessFailedException; | |
class RemoteArtisan |