This file contains hidden or 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
| ; /etc/nginx/conf.d/www.conf | |
| server { | |
| server_name www.mydomain.com; | |
| index index.php; | |
| root /var/www/public; | |
| location / { | |
| try_files $uri $uri/ /index.php?$query_string; |
This file contains hidden or 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
| const _ = require('lodash'); | |
| const defaultConfig = require('tailwindcss/defaultConfig')(); | |
| const escape = require('tailwindcss/utils/escapeClassName'); | |
| const addUtilities = require('tailwindcss/utils/addUtilities'); | |
| const addComponents = require('tailwindcss/utils/addComponents'); | |
| export class PluginLoader | |
| { | |
| constructor(name, configOverrides, tailwindConfig) { |
This file contains hidden or 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 Exception as RootException; | |
| use Illuminate\Support\Arr; | |
| use Illuminate\Support\Str; | |
| use PHPUnit\Framework\AssertionFailedError; | |
| use PHPUnit\Framework\Test; | |
| use PHPUnit\Framework\TestCase; |
This file contains hidden or 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 | |
| $crawler = new Crawler($html); | |
| $nodes = $crawler->filter('faux'); // Crawl <faux> tags | |
| $nodes->each(function(Crawler $crawler) { | |
| $node = $crawler->getNode(0); | |
| $php = "@component('{$node->tagName}')"; |
This file contains hidden or 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\Support\View; | |
| use Illuminate\Support\Facades\Blade; | |
| use Illuminate\Support\Facades\Log; | |
| use Illuminate\View\Compilers\BladeCompiler; | |
| use Illuminate\View\Compilers\Concerns\CompilesEchos; | |
| use RuntimeException; | |
| use Symfony\Component\Process\Process; |
This file contains hidden or 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
| const selectorParser = require('postcss-selector-parser'); | |
| module.exports = { | |
| /* ... */ | |
| plugins: [ | |
| function({ addVariant }) { | |
| addVariant('logged-out', ({ modifySelectors, separator }) => { | |
| return modifySelectors(({ selector }) => { | |
| return selectorParser(selectors => { | |
| selectors.walkClasses(sel => { |
This file contains hidden or 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
| export default function(babel) { | |
| const { types: t } = babel; | |
| return { | |
| name: "inertia-babel-transform", | |
| visitor: { | |
| ExportDefaultDeclaration(path, state) { | |
| const componentName = state.filename || "_"; | |
| path.replaceWith( | |
| t.expressionStatement( |
This file contains hidden or 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\Traits; | |
| use Illuminate\Support\Facades\DB; | |
| class RefreshDatabaseState | |
| { | |
| public static $hash_algo = 'md5'; | |
This file contains hidden or 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 | |
| /** | |
| * @property string $annotated_string | |
| * @property int $annotated_int | |
| * @property float $annotated_float | |
| * @property bool $annotated_bool | |
| * @property boolean $annotated_boolean | |
| */ | |
| class ScaffoldingModel extends Model |
This file contains hidden or 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
| {{ Aire::scaffold(Author::class) }} |