Skip to content

Instantly share code, notes, and snippets.

View yajra's full-sized avatar

Arjay Angeles yajra

View GitHub Profile
yajra / EmailFactory.php
Last active May 26, 2024 16:47
Laravel OCI8 Bulk Insert using collection POC
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Email>
class EmailFactory extends Factory
yajra / console.php
Created April 22, 2022 02:12
Disable Laravel migrate:fresh command
Artisan::command('migrate:fresh', function () {
/** @var \Illuminate\Console\Command $cmd */
$cmd = $this;
$cmd->ask("Are you sure you want to resign?", "Yes");

How to install OCI8 on macOS 10.15 (Catalina) with PHP 7.3 or 7.4


  • Homebrew
  • Command Line Tools for Xcode
  • PHP 7.3 or 7.4 via Homebrew


yajra /
Created November 24, 2021 01:04 — forked from eSkiSo/
Install OCI8 (Oracle) in Ubuntu 20 with PHP 7.4
yajra / JSTreeField.php
Created June 22, 2021 10:56
DataTables Editor jsTree field type example.
namespace App\Editor\Fields;
use Yajra\DataTables\Html\Editor\Fields\Field;
class JSTreeField extends Field
protected $type = 'jsTree';
namespace Yajra\DataTables\Processors;
use Illuminate\Support\Arr;
use Yajra\DataTables\Utilities\Helper;
class DataProcessor
yajra / DataTable.vue
Last active July 25, 2023 11:06
VueJS DataTables Snippets with Delete Button Component
<th v-for="column in parameters.columns" v-html="title(column)"></th>
<tfoot v-if="footer">
<th v-for="column in parameters.columns" v-html="column.footer"></th>
yajra / .env
Last active July 5, 2023 19:51
Laravel DataTables Editor Snippets
yajra /
Created August 24, 2017 04:11 — forked from noelboss/
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your lokal GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like or and pull or export it to a production server. Or you use a service like my to act upon a Web-Hook that's triggered that service.

yajra /
Last active June 12, 2024 11:12
Install wkhtmltopdf 0.12.4 (with patched qt)
tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
mv wkhtmltox/bin/wkhtmlto* /usr/bin/
ln -nfs /usr/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf