Skip to content
DevChunks

DevChunks

Web development tips, tricks and advice

  • PHP
  • MySQL
  • JavaScript
  • Tools
  • Store
  • About
  • Contact
DevChunks
DevChunks
Web development tips, tricks and advice
  • Terminal

    Streamline Your Terminal Workflow with Bash Aliases

    ByCarey April 1, 2023May 16, 2026

    Learn how to create and use bash aliases that act as shortcuts for longer terminal commands, with practical examples to save you typing.

    Read More Streamline Your Terminal Workflow with Bash AliasesContinue

  • PHP

    Filtering Related Models in Laravel: Using the “whereHas” Method

    ByCarey March 25, 2023May 16, 2026

    Learn how to filter query results based on conditions in related models using the Laravel whereHas method.

    Read More Filtering Related Models in Laravel: Using the “whereHas” MethodContinue

  • PHP

    Debug with the “Dump and Die” Laravel Function

    ByCarey March 24, 2023May 16, 2026

    How to use the Laravel dd() Dump and Die function and dump() to inspect variables and debug your code without setting up a debugger.

    Read More Debug with the “Dump and Die” Laravel FunctionContinue

  • MySQL

    Time and Date Functions in MySQL

    ByCarey February 21, 2023May 16, 2026

    How to work with dates and times in MySQL using functions like NOW(), CURRENT_DATE(), YEAR() and DAYNAME(), plus how to calculate a person’s age.

    Read More Time and Date Functions in MySQLContinue

  • MySQL | Tools

    Alternatives to phpMyAdmin MySQL Database Administration

    ByCarey February 20, 2023May 16, 2026

    A look at popular desktop alternatives to phpMyAdmin for managing MySQL databases, including Workbench, HeidiSQL, DBeaver, Navicat and Sequel Pro.

    Read More Alternatives to phpMyAdmin MySQL Database AdministrationContinue

  • SEO

    Why Creating XML Sitemaps for Your Website is Essential for SEO and How to Submit Them

    ByCarey February 19, 2023May 16, 2026

    Why XML sitemaps matter for SEO, the indexing and visibility benefits they bring, and where to submit them: Google, Bing, Yandex and more.

    Read More Why Creating XML Sitemaps for Your Website is Essential for SEO and How to Submit ThemContinue

  • PHP

    Better Use of Boolean Values in IF Statements

    ByCarey February 18, 2023May 16, 2026

    How to write cleaner PHP IF statements by using boolean variables directly and the negation operator instead of explicit true and false comparisons.

    Read More Better Use of Boolean Values in IF StatementsContinue

  • Productivity

    Manage your Tasks, Get Things Done and Reduce Stress

    ByCarey February 4, 2023May 16, 2026

    Task management tips for web developers: get organised, cut interruptions, prioritise, use the right tools and take breaks to reduce stress.

    Read More Manage your Tasks, Get Things Done and Reduce StressContinue

  • PHP

    Keep Your Website’s Copyright Notice Up-to-Date with PHP

    ByCarey January 17, 2023November 18, 2026

    A PHP code snippet using the date() function to auto-update the copyright year in your website footer so the page always looks current.

    Read More Keep Your Website’s Copyright Notice Up-to-Date with PHPContinue

  • PHP

    PHP Magic Constants

    ByCarey December 21, 2022May 16, 2026

    A guide to the nine PHP magic constants, including __LINE__, __FILE__, __DIR__, __CLASS__ and __FUNCTION__, and how each one is useful.

    Read More PHP Magic ConstantsContinue

  • PHP

    Using Enum in PHP

    ByCarey December 10, 2022May 16, 2026

    How to use enums in PHP to define a fixed set of named constants, access their values, and make your code more readable and maintainable.

    Read More Using Enum in PHPContinue

  • PHP

    Try and Catch Exceptions in PHP

    ByCarey November 27, 2022May 16, 2026

    How to use try and catch to handle exceptions in PHP, with examples for division by zero and logging errors thrown by third-party API code.

    Read More Try and Catch Exceptions in PHPContinue

Page navigation

1 2 3 … 7 Next PageNext

Get notified of new posts:

Facebook X Instagram
  • About
  • by ameN
  • Contact
  • Privacy Policy

© 2026 DevChunks

  • PHP
  • MySQL
  • JavaScript
  • Tools
  • Store
  • About
  • Contact