Flutter and Android Emulator API

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

Fortify UI Tailwindcss Laravel preset

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

SnappyPDF (mkhtlmtopdf) working in dev (Laravel)

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');

Laravel, Tailwindcss, and purgeCss

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