Trouble connecting to new Sail DB
Run docker-compose down -v docker-compose up -d
Run docker-compose down -v docker-compose up -d
To publish the email view run the following artisan command They are published in resources->views->vendor->mail
When editing a date vale with the HTML date picker in a livewire component always set the models format to ‘yy-m-d’. For example:- if the value you need to pre-populate is $tools->expiry_date set it to the correct format using
If you need to use a confirm modal on the same element as wire:click use the following before the wire:click.
In order to get the Android emulator to play nice with a local Laravel api you need to set the dev machine to a static ip of say 192.168.1.10 for example. Your api address from an Android virtual device would then be http://192.168.1.10/your/api/endpoints and you need to start php artisan serve with the following switches.... » read more
When pre-populating an initial value field in a TextFormField it does not update with reactive data. To solve this create a Key and use the value you want to display with.toString()
To get started, you’ll need to install FortifyUI Tailwind using Composer. composer require pradeep3/fortify-ui-tailwindcss Next, you’ll need to run the install command: php artisan fortify-ui:tailwindcss
Download the latest version of wkhtlmtopdf from https://wkhtmltopdf.org/downloads.html Run composer require barryvdh/laravel-snappy Copy wkhtmltopdf and mkhtmltoimage binaries to usr/local/bin with cp vendor/h4cc/wkhtmltoimage-amd64/bin/wkhtmltoimage-amd64 /usr/local/bin/ cp vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64 /usr/local/bin/ Change permissions with chmod +x /usr/local/bin/wkhtmltoimage-amd64 chmod +x /usr/local/bin/wkhtmltopdf-amd64 Ensure you add setOption to $doc = Pdf::loadHtml($view)->setOption("enable-local-file-access", true)->setPaper('a4')->setOrientation('landscape')->download ($hours->user->name.' - ' .$week.'.pdf');
To start a Laravel project which will work correctly with purgeCss you can set up like in the following example. Install new Laravel app with Then install Tailwindcss Add the Tailwind helpers to your app.scss file: Create your Tailwind CSS config file by running: Install purgeCss for laravel Then you’ll need to edit your webpack.mix.js... » read more
Use the following