Category Archives: Laravel

Laravel: Custom Accept API Header

Assalamualaikum / Hi, It’s been a while since I stumble upon an API, which have custom Accept header. For a past few days, I have a chance to implement custom header on one of my client project. Here is how I did – create a middleware to filter the coming request. As you can see… Read More »

Laravel: Datatable

Assalamualaikum / Hi, Today I will share how to use Datatables in your Laravel project. I will cover on: Setting up Datatables Compiling Datatables Asset with Laravel Mix Create route for Datatables Create reusable Blade Template for Datatable Part 1: Installation Create a new laravel project. Install package.json dependencies with npm install or yarn install.… Read More »

PHP-CS-Fixer Configuration

Assalamualaikum / Hi, Today, just a quick sharing on my PHP-CS-Fixer setup in my Laravel application. First, you need PHP CS Fixer. You can go through the installation steps here. Then, I’ve added an alias for my PHP-CS-Fixer alias csfix=”php-cs-fixer fix”. Now my PHP-CS-Fixer config file, following are the setup in my Laravel application. Once… Read More »

Laravel: Font Awesome 5

Assalamualaikum / Hi, Today, I’m going to share how to include the new Font Awesome 5 in your Laravel application. You will need Node.js to do so – see Laravel Mix. So to start with let’s, consider that you have your fresh Laravel application created, you need to install all front-end dependencies then install Font… Read More »

Laravel: Create Welcome Email

A quick post on how to setup a welcome email on user registration. Make sure you have a mailtrap.io account for testing purpose, or production you may use SparkPost, or GMail SMTP, or any provider should work with proper .env on mail configuration.