naykel / gotime
Starter package for NayKel Laravel applications
Installs: 318
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Blade
Requires
- php: ^8.2
- graham-campbell/markdown: ^15.2
- illuminate/contracts: ^10.0||^11.0
- livewire/livewire: ^3.4
Requires (Dev)
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^9.0.0||^8.22.0
- pestphp/pest: ^2.34
- pestphp/pest-plugin-arch: ^2.7
- pestphp/pest-plugin-laravel: ^2.3
- dev-main
- dev-master
- v1.0.1
- v1.0.0
- v0.17.0
- v0.16.0
- v0.15.0
- v0.14.5
- v0.14.4
- v0.14.3
- v0.14.2
- v0.14.1
- v0.14.0
- v0.13.4
- v0.13.3
- v0.13.2
- v0.13.1
- v0.13.0
- v0.12.7
- v0.12.6
- v0.12.5
- v0.12.4
- v0.12.3
- v0.12.2
- v0.12.1
- v0.12.0
- v0.11.0
- v0.10.2
- v0.10.0
- v0.9.0
- v0.8.5
- v0.8.4
- v0.8.3
- v0.8.2
- v0.8.1
- v0.8.0
- v0.7.0
- v0.6.4
- v0.6.3
- v0.6.2
- v0.6.1
- v0.6.0
- v0.5.3
- v0.5.1
- v0.5.0
- v0.4.1
- v0.4.0
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.0
- v0.1.2
- v0.1.1
- v0.0.1
- dev-update
This package is auto-updated.
Last update: 2024-11-07 00:44:45 UTC
README
NAYKEL Gotime
Starter package for NayKel Laravel applications.
Installation
To get started, install Gotime using the Composer package manager:
composer require naykel/gotime
Next, install Gotime resources using the gotime:install command:
php artisan gotime:install
The configuration files are merged when the package is registered, however you can optionally publish the naykel.php
configuration file.
php artisan vendor:publish --tag=gotime-config
Known Issues
This driver does not support creating temporary URLs.
https://laracasts.com/discuss/channels/livewire/pdf-passes-image-validation?page=1&replyId=806087
livewire/livewire#3133 (comment)
if (! $this->isPreviewable()) {
// show a missing image icon (?) for files that cannot be previewed
return 'data:image/png;base64...gg-1.5==';
}
Mount the resources or create a blank model
Depending on the route, the Livewire component will either mount a resource and set $editing
with route model binding or create a new blank model setting initial values from the $initalValues
array.
Adding the main image
The $tmpImage
variable is set in the trait as there will be no need to manually use it. ??
The image paramt
- Set the
$disk
or leave blank forpublic
????
Defined attributed in the trait can be reset or overrider in the mount()
method of the main component
Things I learned the Hard Way
Do not define a variable data type that is a file as a string
. Why? It's a file, not a string!
CkEditor
<div wire:ignore class="frm-row">
<textarea wire:model.blur="editing.description" name="editing.description" id="ckeditor"></textarea>
</div>
@push('scripts')
<script src="https://cdn.ckeditor.com/ckeditor5/27.1.0/classic/ckeditor.js"></script>
<script>
ClassicEditor
.create(document.querySelector('#ckeditor'))
.then(editor => {
editor.model.document.on('change:data', () => {
@this.set('editing.description', editor.getData());
})
})
.catch(error => {
console.error(error);
});
</script>
@endpush
Adding New Icons
- update extension
svg
toblade.php
find ./resources/views/components/icon -name "*.svg" -type f -exec bash -c 'mv -- "$0" "${0%.svg}.blade.php"' {} \;
- add
$attributes
,width
andheight
# DON'T RUN THIS WITH EXPORTED FIGMA ICONS, IT WILL ADD THE ATTRIBUTES TWICE find ./resources/views/components/v2/icon -type f -name "*.blade.php" -exec sed -i 's/<svg xmlns="http:\/\/www\.w3\.org\/2000\/svg"/<svg {{ $attributes }} xmlns="http:\/\/www\.w3\.org\/2000\/svg" width="24" height="24"/g' {} + # FOR FIGMA ICONS find ./resources/views/components/icon/other -type f -name "*.blade.php" -exec sed -i 's/<svg xmlns="http:\/\/www\.w3\.org\/2000\/svg"/<svg {{ $attributes }} xmlns="http:\/\/www\.w3\.org\/2000\/svg"/g' {} +