Skip to content

Instantly share code, notes, and snippets.

View yajra's full-sized avatar

Arjay Angeles yajra

View GitHub Profile
@yajra
yajra / DataTable.vue
Last active July 25, 2023 11:06
VueJS DataTables Snippets with Delete Button Component
<template>
<table>
<thead>
<tr>
<th v-for="column in parameters.columns" v-html="title(column)"></th>
</tr>
</thead>
<tfoot v-if="footer">
<tr>
<th v-for="column in parameters.columns" v-html="column.footer"></th>
<?php
namespace Yajra\DataTables\Processors;
use Illuminate\Support\Arr;
use Yajra\DataTables\Utilities\Helper;
class DataProcessor
{
/**
@yajra
yajra / JSTreeField.php
Created June 22, 2021 10:56
DataTables Editor jsTree field type example.
<?php
namespace App\Editor\Fields;
use Yajra\DataTables\Html\Editor\Fields\Field;
class JSTreeField extends Field
{
protected $type = 'jsTree';
}
@yajra
yajra / install_oci8_ubuntu20_php7.4.md
Created November 24, 2021 01:04 — forked from eSkiSo/install_oci8_ubuntu20_php7.4.md
Install OCI8 (Oracle) in Ubuntu 20 with PHP 7.4

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

Requirements

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

Preparation

@yajra
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");
$cmd->comment(
<<<'TXT'
.~))>>