This file contains 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 mix = require('laravel-mix'); | |
const fs = require('fs') | |
const resourcePath = 'resources/js/' | |
const assetPath = 'public/assets/' | |
/* | |
|-------------------------------------------------------------------------- | |
| Helper functions | |
|-------------------------------------------------------------------------- |
This file contains 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
public $email; | |
public function updated($name) | |
{ | |
$this->validateOnly($name, [ | |
'email' => 'required|email', | |
]); | |
} |
This file contains 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
@props([ | |
'percentage' => 0, | |
'failed' => false | |
]) | |
@php | |
$done = $failed || $percentage == 100; | |
@endphp | |
<div {{ $attributes->merge(['class' => ' space-y-1'])->whereDoesntStartWith('wire:poll') }} |
This file contains 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
//-------------------------------------------------------------------------- | |
// NOTE: This example uses Testbench Dusk inside of a package | |
// | |
// The `beforeServingApplication` hook doesn't exist in laravel dusk | |
// But i'm sure you can create a temporary route some other way | |
// when using this in a laravel project | |
//-------------------------------------------------------------------------- | |
class DuskTestCase extends BaseTestCase | |
{ |
This file contains 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
{ | |
/* | |
|-------------------------------------------------------------------------- | |
| Typography | |
| | |
| Variations are specific to my MonoLisa. Check what your font supports | |
| See the next section for the textmate rules I use | |
|-------------------------------------------------------------------------- | |
*/ |