Sometimes, we need to add more property to the Model or transform the original Model. We can define our own custom fields on top of existing in the database table. But, there is an Eloquent property name $appends to help us done this quickly
The error said your configuration was wrong. So, you need to check it. There is a difference a bit in the Testing environment is the Laravel App is using another configuration file. It used the file name
Okay, so today I have a task that I need to run a Laravel App. I decided to set up a Docker for it. So I could share the development environment for my teammate
Sometimes you use a third party which asks you input your fan page ID. However, you don't know how to get it. Let me show you how. It is very easy. Ok, so I will show you two approaches to get your fan page ID
To use some products of Facebook such as Customer Chat Plugin, you need to add your domain site into whitelist of your fan page. Through this article, I will show you how to do this. It just has a few steps.
Today I will show you how I config to mount S3 Bucket as a local file system on Ubuntu 16.04
Most of the servers use PHP 5.5.9 or 5.6. Those PHP versions are not going to support soon. Since more and more applications use PHP 7.x to build, then we also need to upgrade it to our server
Sometimes you may look at this URL on your browser. When you try to remove index.php out of URL, you get 404 Not Found page. Or for some reasons your site gets 404 Not Found for all links. So below are what I did when I got this situation.
Sometime you want to let your customers can order the product with no price. Woocommerce has a filter that allows you change purchasable ability
Today, I got a task call “Remove ‘product’ slug out single product url” in Woocommerce. The code below work ok but I properly make conflict with post, page which have same slug with product. <?php /** * [removeSlug description] * @param [type] $postLink [description] * @param [type] $post [description] * @param [type] $leavename [description] * … <p class="link-more"><a href="https://www.duyngha.com/blogs/remove-custom-post-type-slug-url/" class="more-link">Continue reading<span class="screen-reader-text"> "How to remove custom post type slug from url"</span></a></p>