QR in Form Section [CreateRecord, EditRecord]
Is it possible to do something similar using a component?
24 Replies
Easily yes, as @Lara Zeus has your back
https://filamentphp.com/plugins/lara-zeus-qr
Filament
Qr ⚡️ Component by Lara Zeus - Filament
Qr Code Component, Form Field to generate Qr with designing options.
What are you trying to do that the plugin won't do?
https://github.com/SimpleSoftwareIO/simple-qrcode
you can use this and a Filamentphp View Field
GitHub
GitHub - SimpleSoftwareIO/simple-qrcode: An easy-to-use PHP QrCode ...
An easy-to-use PHP QrCode generator with first-party support for Laravel. - SimpleSoftwareIO/simple-qrcode
https://web.archive.org/web/20240221193114/https://www.simplesoftware.io/#/docs/simple-qrcode
their site is not working and I would like to have a reactive field with a link and download buttons png, svg
Simple Software
SimpleSoftware.io -- providing the world with better, simple software solutions to make your online experience faster and easier to use.
Tapan Sharma
YouTube
How to Work with QR Code generation in Filament PHP | Beginners Tut...
In this video, we will be working on generating QR codes with Filament PHP.
It seems tricky to deal with these tasks while working on Filament since all the logic is abstracted away. But, it's quite easy and we'll be looking at it in this video.
--------------------------------------------------------------------------------
Link to the Course...
@toeknee @Lara Zeus
how to do this could you write an example
and I would like to be able to assign and hide these fields by default and be able to pass an anonymous function there, with the possibility of reactivity, as in filament 3)
Create Interactive QR Generator with filamentPHP | Lara Zeus
Create an Interactive QR Generator with filamentPHP and livewire
everything is in the doc
https://larazeus.com/docs/qr/v1/introduction
you cant pick the fields to show/hide
but they all form components you just copy the code and use it directlly in your form
If you were to for example use:
then create a view: resources/views/filament/components/qrcode.blade.php
with say
Using the package: simplesoftwareio/simple-qrcode
what is there? I don't see an example of creating a form component
not even in the installations page!! 😉
I almost managed to make a working component, can you tell me?
and it doesn't update either qr if edit link
no, what data should be here?
LaraZeus\Qr\Facades\Qr::render(): Argument #1 ($data) must be of type ?string, array given, called in /home/roman/PhpstormProjects/historia-back/app/Filament/Resources/BoxResource.php on line 94
these are the parameters:
$data
is string, its what you want to apply to the QR code
$options
is the array for the options like size and color etc
PHP 8.2.18
11.7.0
Filament\Forms\ComponentContainer::Filament\Forms\Concerns{closure}(): Argument #1 ($component) must be of type Filament\Forms\Components\Component, Illuminate\Support\HtmlString given
`
help me make a working download button
Forms\Components\Livewire::make(\App\Filament\Pages\QrCode::class)
I want to improve the component and make it a fully customizable builder
I downloaded your code and its working
there is an error when click on the download button because you cant import in inline js
how can I fix this?
check the code of the package on github
you need to add the packages in your js build
Tell me why these properties are required, I still haven’t found where they are used, the breakpoint does not work. is there a built-in method for this? I would like to go deeper into understanding this
fill() not work
Tell me why these properties are required
you mean the colors and size etc?
its required for the underline package
simplesoftwareio/simple-qrcode
you can check and see how it used
if you only want the QR without any other options and have full control
you can used the package mentioned by toeknee