Tests run on a 2013 Macbook Pro with 2.8GHz Intel Core i7, 16 GB 1600 MHz DDR3 using Laravel Valet.
On a template listing 10 posts sorted by date.
| <div x-if="$request('comments').loading"> | |
| Loading... | |
| </div> | |
| <div x-if="$request('comments').errors"> | |
| Errors... | |
| </div> | |
| <template | |
| x-for="comment in $request('comments').fetch(`/posts/${currentPost}/comments`)" |
| <?php | |
| // A very crude way to see the "query" when using the stache. | |
| // I used this to test https://github.com/statamic/cms/pull/3540 | |
| public function get($columns = ['*']) | |
| { | |
| $results = parent::get($columns); | |
| $sql = 'select '; |
| <?php | |
| class LocalValetDriver extends LaravelValetDriver | |
| { | |
| public function frontControllerPath($sitePath, $siteName, $uri) | |
| { | |
| if ($this->isActualFile($staticPath = $this->getStaticPath($sitePath))) { | |
| return $staticPath; | |
| } |
| <?php | |
| namespace Tests; | |
| use PHPUnit\Runner\AfterLastTestHook; | |
| use PHPUnit\Runner\BeforeFirstTestHook; | |
| use PHPUnit\Runner\BeforeTestHook; | |
| class Hooks implements BeforeFirstTestHook, AfterLastTestHook, BeforeTestHook | |
| { |
| const snakeToPascal = str => str | |
| .split('_') | |
| .map(word => word[0].toUpperCase() + word.slice(1)) | |
| .join(''); | |
| snakeToPascal('hello_world'); // HelloWorld |
| <?php // copy everything after this line | |
| use Illuminate\Support\Facades\Artisan; | |
| use Statamic\Facades\File; | |
| use Statamic\Facades\YAML; | |
| class MigrateBetaFortyFive | |
| { | |
| protected $console; |
| <?php // copy everything after this line | |
| use Illuminate\Support\Facades\Artisan; | |
| use Statamic\Facades\AssetContainer; | |
| use Statamic\Facades\Blueprint; | |
| use Statamic\Facades\Collection; | |
| use Statamic\Facades\File; | |
| use Statamic\Facades\Form; | |
| use Statamic\Facades\GlobalSet; | |
| use Statamic\Facades\Taxonomy; |
| driver: smtp | |
| host: 127.0.0.1 | |
| port: 2525 | |
| username: 'Your Mailbox Name' | |
| encryption: null |