• Generating Dummy Data in Laravel Application Using Faker

    Back in the good old days, I often test PHP applications by accessing it directly from the web browser and input the data in the forms. Today, with the explosion of awesome PHP libraries we can now generate most kinds of data by using code alone. The data can then be directly inserted into the database. This reduces the need to input data directly into the app. In Laravel application, there’s an awesome package for this called Faker - a PHP library that generates fake data for you. Faker is not exactly Laravel package, but perfectly works with this framework as well. Check their github page: https://github.com/fzaninotto/Faker
  • How to install MongoDB 4.2 on Linux Mint 19

    Using official Ubuntu's repository is easier if you don't care if you're using older MongoDB version.
  • How to install PHP 7.3 on Ubuntu 18.04 (Bionic Beaver)

    As PHP had officially released , I decided to install it on one of my development server. It uses Ubuntu 18.04 (Bionic Beaver), so official PHP package provided from their repository is at 7.2.19. Thanks to
  • How to Install PostgreSQL 12 on Linux Mint 19 Tara (19.1 Tessa, 19.2 Tina, 19.3 Tricia)

    The PostgreSQL Global Development Group had announced the release of PostgreSQL 12 . Let's install it on our Linux Mint 19 (19 Tara, 19.1 Tessa, 19.2 Tina, 19.3 Tricia).
  • How to Use Tailwindcss with Laravel 7

    Tailwind CSS is a highly customizable, low-level CSS framework that gives you all of the building blocks you need to build bespoke designs without any annoying opinionated styles you have to fight to override. Most CSS frameworks do too much. They come with all sorts of predesigned components like buttons, cards, and alerts that might help you move quickly at first, but cause more pain than they cure when it comes time to make your site stand out with a custom design.
  • How to Read SMART Log from NVMe Device on Linux

    After convincing myself that it's worth the price, I took the courage to get an NVMe SSD and install it to my PC. I've considered two strong candidates: Samsung 970 Evo Plus and Adata XPG SX8200. Adata has cheaper price and I'm going to take it, but in last minutes I choose Samsung one because it has bigger TBW so I hope it will be last longer.
  • How to Install Ubuntu 20.04 Focal Fossa Server

    On Thursday, April 23rd, 2020, Canonical Ltd, the makers of distribution officially released the long-awaited version code-named “”, it is an () version based on Linux kernel series , for which maintenance updates will be provided for 5 years until and it will reach end-of-life in . This article will walk you through the process of installing with on your machine.
  • How to Install PostgreSQL 12 on Ubuntu 20.04 Focal Fossa

    , or Postgres, is a relational database management system that provides an implementation of the SQL querying language. It’s standards-compliant and has many advanced features like reliable transactions and concurrency without read locks. PostgreSQL is developed by PostgreSQL Global Development Group, a group of individual volunteers and corporate companies.
  • Install OpenLDAP Server on Ubuntu 20.04 Focal Fossa

    () is an open, vendor-neutral, industry standard application protocol for accessing and maintaining distributed directory information services over an Internet Protocol (IP) network. Directory services make sharing of information about users, systems, networks, services, and applications throughout the network possible. As examples, directory services may provide any organized set of records, often with a hierarchical structure, such as a corporate email directory.
  • 18
    May

    Generating Dummy Data in Laravel Application Using Faker

    Back in the good old days, I often test PHP applications by accessing it directly from the web browser and input the data in the forms. Today, with the explosion of awesome PHP libraries we can now generate most kinds of data by using code alone. The data can then be directly inserted into the database. This reduces the need to input data directly into the app. In Laravel application, there’s an awesome package for this called Faker - a PHP library that generates fake data for you. Faker is not exactly Laravel package, but perfectly works with this framework as well. Check their github page: https://github.com/fzaninotto/Faker
  • 16
    May

    How to Localize Time Format in Laravel and Carbon

    I develop a Laravel application which need to show date in localized format. The 'date' I'm talking about is database record which defined as in its model.
  • 09
    May

    Calculate Distance Between Two Coordinates in PHP

    I have a client which sell foods and offer free delivery for small covered area. To check whether a coordinate is still covered by its service, I need to calculate the distance. There are many PHP functions shown up when we searched "", but I need the result to closely match with Google because I display the covered area in Google map.
  • 08
    May

    Laravel Accessors: How to Use and When Do We Use It

    Eloquent ORM included with Laravel provides a simple ActiveRecord implementation for working with database. Each database table has a corresponding "Model" which is used to interact with that table. Models allow you to query for data in your tables, as well as insert new records into the table.