Skip to content

Instantly share code, notes, and snippets.

View abdulwahhabkhan's full-sized avatar
🏠
Working from home

Abdul Wahhab Khan abdulwahhabkhan

🏠
Working from home
  • Cambridge United Kindom
View GitHub Profile
@abdulwahhabkhan
abdulwahhabkhan / macosx-install-php-oracle-oci8.md
Created January 11, 2024 08:06 — forked from nasrulhazim/macosx-install-php-oracle-oci8.md
install Oracle PHP Extension (oracle OCI8) - instantclient for Mac OS 10.12.6 - homebrew environnement - on PHP 7.2

Installation

This procedure is tested on Mac OS X 10.12.6

PHP 7.2 installed with Homebrew.

Preparation

Download the following files from Oracle website (yes, you need to create an account and accept terms):

@abdulwahhabkhan
abdulwahhabkhan / jsonToTable.php
Created April 19, 2024 09:11 — forked from stilliard/jsonToTable.php
JSON to HTML table
<?php
/**
* JSON data to html table
*
* @param object $data
*
*/
function jsonToTable ($data)
{
@abdulwahhabkhan
abdulwahhabkhan / Livewire Theme switch.md
Last active February 15, 2025 22:41
Toggle Dark Mode with Alpine and Livewire

Setup Theme swticher

Include code in app.js

import {Alpine, Livewire} from '../../vendor/livewire/livewire/dist/livewire.esm'
import {themeSwitch} from './theme-switch.js';

window.Alpine = Alpine
Alpine.data('themeSwitch', themeSwitch);
@abdulwahhabkhan
abdulwahhabkhan / A Laravel PRO setup.md
Last active February 15, 2025 22:32
Setup laravel application like a PRO

These changes will make your application awesome.

Models

Change base model extend

Chage the model stub so that common functionality can be added to all model, same as controller.

Strict mode

All unsed properties, morphs without mapping, lazy loading will be disabled on local.