/app
├── /Application
| ├── /Exceptions
| ├── /Middlewares
| ├── /Providers
| ├── /Requests
├── /Domain
| ├── /MyDomainA
| | ├── /Contracts
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
<?php | |
declare(strict_types=1); | |
namespace App\Rules; | |
use Illuminate\Contracts\Validation\Rule; | |
use Illuminate\Support\Facades\Auth; | |
use Illuminate\Support\Facades\Hash; |
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
<script> | |
const isNaN = Number.isNaN || window.isNaN; | |
export default { | |
props: ['pagination'], | |
data() { | |
return { | |
page: this.pagination.current_page, | |
}; |
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
<script> | |
/** | |
* @link https://jsfiddle.net/adamwathan/dootdso8/ | |
*/ | |
export default { | |
props: ['initialData', 'created', 'mounted'], | |
data() { | |
return { | |
data: this.$props.initialData |
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
<script> | |
/** | |
* @link https://jsfiddle.net/adamwathan/2juusxqo/ | |
*/ | |
const erd = elementResizeDetectorMaker({ strategy: 'scroll' }); | |
export default { | |
data() { | |
return { | |
width: null, |
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
[program:laravel-worker] | |
process_name=%(program_name)s_%(process_num)02d | |
command=php /home/slingshotdev/code/artisan queue:work --sleep=3 --tries=3 | |
autostart=true | |
autorestart=true | |
user=slingshotdev | |
numprocs=1 | |
redirect_stderr=true | |
stdout_logfile=/home/slingshotdev/code/storage/logs/worker.log |
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
// So ImageMagic is pretty cool, -but- it can sometimes consider a TIFF | |
// to be "metadata" that should be part of your thumbnailed JPG. | |
$Thumb = new \Imagick(); | |
$Thumb->setResolution(72,72); // set the DPI of $Thumb to 72dpi, it's the WEB! | |
$data = file_get_contents('/data/some_image.jpg'); // secretly a TIFF pretending to be a JPG | |
// else make $data be something that came from curl_exec | |
$Thumb->readImageBlob($data); | |
$Thumb->setCompressionQuality(80); // you know, why have a 100compression quality thumbnail? | |
$Thumb->resampleImage(72,72,imagick::FILTER_UNDEFINED,1); // VERY IMPORTANT, without this it'll just "set" the DPI |
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') }} |