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

Using joins in Eloquent

This query will join the engineers table and the courses table to the qualifications table and will make the engineers.name column available as engineers_name in the view. Remember relationships on this query (qualifications) will not be available in the view. Example will not work.

Foreign Keys in eloquent migrations

When writing your migrations in Eloquent you may want to define something like To do this (in version 6 of Laravel) you must define the foreign keys using the following syntax to match the new bigIncrements autoincrement key added by Laravel to all tables.

Getting Vue.js to work with Laravel

I have recently started building Vue.js components for my Laravel apps. When I first tried I found it difficult to get Vue.js to work and also allow the use of the excellent Vue Devtools chrome extension. This is how I finally got it working with no errors. layouts\app.blade.php Note that the <script src=”{{ asset(‘js/app.js’) }}”></script>... » read more

Laravel Development Environment on Windows

I have been creating web applications with the excellent Laravel PHP framework for about two and a half years. On macos I have always used PHPStorm IDE and Valet with a local install on MySQL. When on Windows I use Homestead. I have found that Homestead can suffer form performance issues on Windows so I... » read more

Hello world!

Hi. My name is Paul. I’m 48 and work as an IT manager for a commercial electrical contractor. When I joined I was teaching myself to code and wrote a few apps in Python for the business. That led to the business funding a two year foundation degree in Computer Science. After completing that I... » read more