Skip to content

Instantly share code, notes, and snippets.

@noxify
noxify / BaseController.php
Created January 10, 2014 12:53
Example to use the laravel4-theme package from teepluss Github: https://github.com/teepluss/laravel4-theme
<?php
//app/controllers/BaseController.php
class BaseController extends Controller {
/**
* Setup the layout used by the controller.
*
* @return void
*/
@noxify
noxify / PackagistDetailCommand.php
Last active August 29, 2015 14:11
Packagist Search Example
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class PackagistDetailCommand extends Command {
/**
* The console command name.
class Dashing.Outboard extends Dashing.Widget
ready: ->
# This is fired when the widget is done being rendered
onData: (data) ->
# Handle incoming data
# You can access the html node of this widget with `@node`
# Example: $(@node).fadeOut().fadeIn() will make the node flash each time data comes in.
@noxify
noxify / CategorySelect.php
Created August 10, 2015 09:38
Select options as a tree #196
<?php namespace App\FormItems;
//location: /app/FormItems/
use SleepingOwl\Admin\AssetManager\AssetManager;
use SleepingOwl\Admin\Repository\BaseRepository;
use SleepingOwl\Admin\FormItems\NamedFormItem;
@noxify
noxify / Sync.php
Last active November 20, 2016 17:34
Simple Command to sync/deploy your changes from a public Github Repository to your local/remote server
<?php
//app/Console/Command/Sync.php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Foundation\Inspiring;
class Sync extends Command
{
/**
@noxify
noxify / app - Admin - News.php
Created December 30, 2015 19:20
SoaS - Working Example with Ajax Form
<?php
Admin::model('App\Entities\News')->title('News')->display(function ()
{
$display = AdminDisplay::table();
$display->scope('last');
$display->columns([
Column::string('title')->label('Title'),
Column::datetime('date')->label('Date')->format('d.m.Y'),
Column::custom()->label('Published')->callback(function ($instance)
@noxify
noxify / app - Admin - Company2.php
Created December 30, 2015 19:27
SoaS - Not working example with ajax form
<?php
Admin::model('App\Entities\Company2')->translate(true)->title('Translatable Companies')->display(function ()
{
$display = AdminDisplay::table();
$display->with('translations');
$display->columns([
Column::string('title')->label('Title'),
Column::string('companyName')->label('Company Name'),
Column::string('address')->label('Address'),
@noxify
noxify / MenuItem.php
Last active January 5, 2016 00:49
SoaS - Active Link detection
<?php namespace SleepingOwl\Admin\Menu;
use AdminTemplate;
use Closure;
use Illuminate\Contracts\Support\Renderable;
use Illuminate\View\View;
use SleepingOwl\Admin\Admin;
use Illuminate\Support\Arr;
use SleepingOwl\Admin\Model\ModelConfiguration;
var elixir = require('laravel-elixir');
//set production mode by default
elixir.config.production = true;
elixir(function(mix) {
var paths = {
var elixir = require('laravel-elixir');
//set production mode by default
elixir.config.production = true;
elixir(function(mix) {
var paths = {
'bower' : './bower_components/',
'assets' : 'resources/assets/',