DC Blog RSS Feed https://dcblog.dev DC Blog RSS Feed EN My PhpStorm Setup https://dcblog.dev/my-phpstorm-setup

I've documented my PhpStorm setup, what theme I use, plugins, and keybindings.

https://dcblog.dev/my-phpstorm-setup Wed, 20 Sep 2023 17:31:00 GMT
VIM shortcuts https://dcblog.dev/vim-shortcuts

There are multiple modes in vim, normal mode is loaded by default...

https://dcblog.dev/vim-shortcuts Mon, 18 Sep 2023 05:30:00 GMT
Laravel Extract Language to lang files https://dcblog.dev/laravel-extract-language-to-lang-files

If you've already used JSON lang in your views, here's a handy package to extract all lang keys to language files. The package exports all your __(‘some text’) calls to language files.

https://dcblog.dev/laravel-extract-language-to-lang-files Thu, 23 Mar 2023 08:46:00 GMT
I'm writing a new Laravel book on testing called Laravel Testing Cookbook https://dcblog.dev/im-writing-a-new-laravel-book-on-testing-called-laravel-testing-cookbook

Laravel Testing Cookbook will cover common use cases and will be ready in a few months time. Sign up for the waitlist to be notified when it's ready!

https://dcblog.dev/im-writing-a-new-laravel-book-on-testing-called-laravel-testing-cookbook Sat, 18 Mar 2023 12:24:00 GMT
Adding pinned posts with Laravel https://dcblog.dev/adding-pinned-posts-with-laravel

Let's say you have a blog and have posts ordered by their published date. Later you decide you want to pin certain posts.

Pinned posts should be displayed before any other posts regardless of their published date.

https://dcblog.dev/adding-pinned-posts-with-laravel Mon, 30 Jan 2023 01:05:00 GMT
Laravel Livewire Resources https://dcblog.dev/laravel-livewire-resources

A collection of tools, packages and courses

https://dcblog.dev/laravel-livewire-resources Sun, 22 Jan 2023 11:03:00 GMT
Upload images in Ckeditor 5 with Laravel https://dcblog.dev/upload-images-in-ckeditor-5-with-laravel

CKeditor 5 out of the box does not come with upload capabilities. Uploading is supported with its plugins, some are official paid plugins that require subscriptions.

https://dcblog.dev/upload-images-in-ckeditor-5-with-laravel Sat, 21 Jan 2023 03:39:00 GMT
Dev Retro 2022 - My reflections https://dcblog.dev/dev-retro-2022-my-reflections

In this post, I want to reflect on my journey as a developer over the last year.

https://dcblog.dev/dev-retro-2022-my-reflections Sat, 07 Jan 2023 00:34:00 GMT
Setup Jira for managing scrum Sprints from scratch https://dcblog.dev/setup-jira-for-managing-scrum-sprints-from-scratch

Working in a team that does agile development is a great way to build software, but it can be tricky to manage multiple projects, what will be worked on and how to manage the tasks across projects.

https://dcblog.dev/setup-jira-for-managing-scrum-sprints-from-scratch Fri, 06 Jan 2023 12:32:00 GMT
PHP Generate a UL menu from an array https://dcblog.dev/php-generate-a-ul-menu-from-an-array

Take an array and build a menu UL list from it. The array should support top-level as well as child links. In fact, it should support an unlimited number of child links.

https://dcblog.dev/php-generate-a-ul-menu-from-an-array Sun, 01 Jan 2023 12:26:00 GMT
Write an SEO-friendly title: A quick start guide https://dcblog.dev/write-an-seo-friendly-title-a-quick-start-guide

Titles need to be reader & search engine friendly so how do you strike the perfect balance?

https://dcblog.dev/write-an-seo-friendly-title-a-quick-start-guide Sun, 20 Nov 2022 05:31:00 GMT
Use PHP to generate table of contents from heading tags https://dcblog.dev/use-php-to-generate-table-of-contents-from-heading-tags

I wanted to create a table of contents from the post's heading tags automatically without having to change the headings like adding an id or anchor.

https://dcblog.dev/use-php-to-generate-table-of-contents-from-heading-tags Tue, 15 Nov 2022 11:43:00 GMT
Running Docker on M1 Mac - docker: compose is not a docker https://dcblog.dev/running-docker-on-m1-mac-docker-compose-is-not-a-docker

When upgrading from an Intel mac to an Apple Silicone I noticed docker fails to run. I'm using Laravel Sail when Sail is installed or when a sail up command is attempted I get an error:

docker: 'compose' is not a docker command

https://dcblog.dev/running-docker-on-m1-mac-docker-compose-is-not-a-docker Sun, 13 Nov 2022 21:34:00 GMT
Using Laravel Sail alongside PhpStorm https://dcblog.dev/using-laravel-sail-alongside-phpstorm

I'm trying out Laravel Sail for my local development, this post serves as documenting the process and getting PhpStorm to play nice with Sail.

Sail is a tool for using docker without needing to use docker commands directly, it builds from an image that installs the latest versions of PHP, Nginx and MySQL.

https://dcblog.dev/using-laravel-sail-alongside-phpstorm Sat, 12 Nov 2022 01:29:00 GMT
Handle Stripe checkout webhooks https://dcblog.dev/handle-stripe-checkout-webhooks

Continuing on from my last post Sell products with Stripe let's first setup a webhook on stripe by going to Developers -> Webhooks https://dashboard.stripe.com/webhooks Add a new webhook, provide a URL for the webhook to go to such as https://domain.com/webhooks/stripe

https://dcblog.dev/handle-stripe-checkout-webhooks Sat, 12 Nov 2022 00:35:00 GMT
The New Reality of AI-Generated Content Creation https://dcblog.dev/the-new-reality-of-ai-generated-content-creation

There's no denying that AI-generated content has the potential to be a game-changer.

https://dcblog.dev/the-new-reality-of-ai-generated-content-creation Wed, 09 Nov 2022 17:53:00 GMT
Sell products with Stripe https://dcblog.dev/sell-products-with-stripe

In this tutorial, I will cover how to use Stripe to take payment for products.

https://dcblog.dev/sell-products-with-stripe Tue, 08 Nov 2022 07:23:00 GMT
Laravel update factory after creation https://dcblog.dev/laravel-update-factory-after-creation

Using a Laravel factory to create a user and then update a relationship directly is possible using factory callbacks. Using a configure method you can call afterCreating and afterMaking closures

https://dcblog.dev/laravel-update-factory-after-creation Sat, 05 Nov 2022 08:02:00 GMT
Laravel boot multiple traits https://dcblog.dev/laravel-boot-multiple-traits

Laravel supports a bootTraitName to allow multiple traits to be bootable.

https://dcblog.dev/laravel-boot-multiple-traits Sat, 05 Nov 2022 05:54:00 GMT
Laravel how to test CSV download https://dcblog.dev/laravel-how-to-test-csv-download

running a test to confirm an endpoing received a 200 response and contains headers with a matching filename.

https://dcblog.dev/laravel-how-to-test-csv-download Mon, 11 Jul 2022 09:41:00 GMT