Skip to content

Instantly share code, notes, and snippets.

View nbinkunwar's full-sized avatar

nabin kunwar nbinkunwar

View GitHub Profile
@nbinkunwar
nbinkunwar / AppServiceProvider.php
Last active April 27, 2019 10:55
Laravel Voyager add Custom key value pairs Form fields
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Nbin\FormFields\KeyValueFormField;
use TCG\Voyager\Facades\Voyager;
class AppServiceProvider extends ServiceProvider
{
<?php
/* * **
*
* This script converts an existing MySQL database to migrations in Laravel 4.
*
* 1. Place this file inside app/controllers/
*
* 2. In this file, edit the index() method to customize this script to your needs.
* - inside $migrate->ignore(), you pass in an array of table