DC Blog RSS Feed https://dcblog.dev DC Blog RSS Feed EN Composer Scripts: Boosting Your Team's Efficiency https://dcblog.dev/composer-scripts-boosting-your-teams-efficiency https://dcblog.dev/composer-scripts-boosting-your-teams-efficiency Fri, 12 Apr 2024 11:26:00 GMT How to disable Laravel console commands https://dcblog.dev/how-to-disable-laravel-console-commands Suppose you find yourself in a situation where you need to disable or intercept a console command in Laravel. This tutorial will primarily focus on how to intercept the `php artisan migrate` command. We'll delve into the command method `app/Console/Kernel.php` and explore how to prevent the migrate command from executing any actions.]]> https://dcblog.dev/how-to-disable-laravel-console-commands Mon, 05 Feb 2024 11:49:00 GMT 15 years of blogging 500 posts later https://dcblog.dev/15-years-of-blogging-500-posts-later You know, it's funny how the big milestones can sneak up on us.]]> https://dcblog.dev/15-years-of-blogging-500-posts-later Mon, 05 Feb 2024 11:30:00 GMT GitHub patch release previous version https://dcblog.dev/github-patch-release-previous-version On Github you way from time to time need to patch release the previous version of a published release.

]]>
https://dcblog.dev/github-patch-release-previous-version Fri, 02 Feb 2024 03:37:00 GMT
The podcasts I listen to as a PHP developer https://dcblog.dev/the-podcasts-i-listen-to-as-a-php-developer

The following are the podcasts I listen to. In no particular order. (That have episodes recently)

]]>
https://dcblog.dev/the-podcasts-i-listen-to-as-a-php-developer Fri, 19 Jan 2024 02:47:00 GMT
Creating Flexible Layouts in Laravel with Yields, Includes and Slots https://dcblog.dev/creating-flexible-layouts-in-laravel-with-yields-includes-and-slots

In Laravel, the @yield directive is used in blade templates to define a section that can have code injected or "yielded" by child views.

]]>
https://dcblog.dev/creating-flexible-layouts-in-laravel-with-yields-includes-and-slots Thu, 18 Jan 2024 02:41:00 GMT
Enhancing Laravel Applications with Traits: A Step-by-Step Guide https://dcblog.dev/enhancing-laravel-applications-with-traits-a-step-by-step-guide

Traits are a mechanism for code reuse. Traits allow you to create methods that can be used in multiple classes to avoid code duplication. They are intended to enhance traditional inheritance, enabling you to reuse sets of methods freely in several independent classes living in different class hierarchies.

]]>
https://dcblog.dev/enhancing-laravel-applications-with-traits-a-step-by-step-guide Wed, 17 Jan 2024 02:21:00 GMT
Laravel ApiResouce name nested route placeholder https://dcblog.dev/laravel-apiresouce-name-nested-route-placeholder

When using an ApiResource that has more than one placeholder it may seem tricky to figure out how to name the placeholder used.

]]>
https://dcblog.dev/laravel-apiresouce-name-nested-route-placeholder Thu, 11 Jan 2024 02:14:00 GMT
Black Friday Sale on Laravel:The Modular Way https://dcblog.dev/black-friday-sale-on-laravelthe-modular-way

Dive into the world of #LaravelModules like never before!

]]>
https://dcblog.dev/black-friday-sale-on-laravelthe-modular-way Wed, 22 Nov 2023 02:12:00 GMT
My process for writing Laravel packages https://dcblog.dev/my-process-for-writing-laravel-packages

In this post, I go over the overall steps to creating a package.

]]>
https://dcblog.dev/my-process-for-writing-laravel-packages Fri, 10 Nov 2023 02:13:00 GMT
Running HTTP requests in PhpStorm https://dcblog.dev/running-http-requests-in-phpstorm

Running API tests you may be tempted to open PostMan or another API client, did you know, you can run HTTP requests from inside PhpStorm directly?

]]>
https://dcblog.dev/running-http-requests-in-phpstorm Tue, 10 Oct 2023 11:07:00 GMT
Extracting a time into select menus with PHP https://dcblog.dev/extracting-a-time-into-select-menus-with-php

When storing time in a database, often I'll store this in a time format such as 14:25:00 When populating this in a form I'll either use a time picker or use a plain select menu a separate menu for each element.

]]>
https://dcblog.dev/extracting-a-time-into-select-menus-with-php Fri, 06 Oct 2023 11:04:00 GMT
Vue show and hide form elements https://dcblog.dev/vue-show-and-hide-form-elements

When working with forms, it is common to display or conceal various fields based on the options selected.

]]>
https://dcblog.dev/vue-show-and-hide-form-elements Wed, 04 Oct 2023 11:03:00 GMT
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 05: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