Skip to content

Instantly share code, notes, and snippets.

@marekmurawski
marekmurawski / laravel-optgroup.php
Last active January 8, 2018 12:32
Laravel macro Form::select() with optgroup based on Collection field
<?php
// You can put this code into /app/routes.php for testing
/*
* Form::selectOpt()
*
* Parameters:
* $collection A I\S\Collection instance
* $name The HTML "name"
* $groupBy Field by which options are grouped
@marekmurawski
marekmurawski / mmGMaps.php
Last active December 11, 2015 01:08
Google Maps v3 FRONTEND EDITOR snippet for Wolf CMS requires MultiEdit plugin.
<?php
/**
* Google Maps v3 FRONTEND EDITOR snippet for Wolf CMS
*
* @author Marek Murawski <http://marekmurawski.pl>
* @copyright Marek Murawski, 2013
* @license http://www.gnu.org/licenses/gpl.html GPLv3 license
*
* REQUIRES:
@marekmurawski
marekmurawski / multiedit_frontend.php
Last active October 11, 2015 18:17
MultiEdit frontend example
<?php
/**
* You need jQuery in your frontend for MultiEdit to work
* =============================================================================
* <html>
* <head>
* <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js"></script>
* </head>
*
*