Skip to content

Instantly share code, notes, and snippets.


Nasrul Hazim Bin Mohamad nasrulhazim

Block or report user

Report or block nasrulhazim

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Base.php
namespace App\Models;
use App\Contracts\Datatable as DatatableContract;
use App\Traits\HasDatatable;
use App\Traits\HasMediaExtended;
use App\Traits\SelectOptionTrait;
use App\Traits\WithDetailsTrait;
use Illuminate\Database\Eloquent\Model;
nasrulhazim / RouteServiceProvider.php
Last active Nov 5, 2019
Organise Laravel Routes
View RouteServiceProvider.php
)->each(function ($path) {
require $path;
nasrulhazim / ReloadCacheCommand.php
Created Nov 5, 2019
Recache all Laravel caches - `reload:cache`
View ReloadCacheCommand.php
namespace App\Console\Commands\Reload;
use Illuminate\Console\Command;
class ReloadCacheCommand extends Command
* The name and signature of the console command.
nasrulhazim /
Last active Aug 25, 2019
Create PDO for Informix for MacOS

Download targeted Informix Client SDK

Extract the installer:

$ tar -xvf filename.tar

Install the Client SDK:

nasrulhazim /
Created Aug 23, 2019
Informix DB Installation

Create Informix Group & User

# groupadd -g 1001 informix
# useradd -u 1001 -g informix informix
# passwd informix

Password: informix

nasrulhazim / .php_cs
Created Jul 6, 2019 — forked from jwage/.php_cs
php-cs-fixer git pre commit hook
View .php_cs
return Symfony\CS\Config\Config::create()
nasrulhazim /
Created May 23, 2019
Personal Access Token for CLI - GitHub
composer config your-personal-access-token
nasrulhazim / composer.json
Created May 23, 2019
Private Repository in Application
View composer.json
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"license": "MIT",
"require": {
nasrulhazim / azure-pipelines.yml
Last active May 21, 2019 — forked from zanechua/azure-pipelines.yml
Azure Pipeline + Laravel + PHPUnit + Laravel Dusk
View azure-pipelines.yml
# Test and package your PHP project.
# Add steps that run tests, save build artifacts, deploy, and more:
- develop
vmImage: 'Ubuntu-16.04'
nasrulhazim / DuskTestCase.php
Created May 21, 2019
Use SQLite in Laravel Dusk
View DuskTestCase.php
namespace Tests;
use Facebook\WebDriver\Chrome\ChromeOptions;
use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver;
use Laravel\Dusk\TestCase as BaseTestCase;
use Illuminate\Contracts\Console\Kernel;
You can’t perform that action at this time.