This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
////////////////////////////////////////////////////////// | |
// This Class will be use to send push notification to iPhone device. | |
////////////////////////////////////////////////////////// | |
class IOSPushNotify | |
{ | |
private $apnPath; | |
private $authId; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Middleware; | |
use Auth; | |
use Closure; | |
class Admin | |
{ | |
/** | |
* Handle an incoming request. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('admin.layouts.master') | |
@section('page_meta') | |
<title>{{ page_title('{Resources}') }}</title> | |
@endsection | |
@section('content') | |
<a href="{{ route('admin.{items}.create') }}" class="btn btn-primary pull-right"><i class="fa fa-plus"></i> Add {Resource}</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers\Admin; | |
use App\BlogPost; | |
use Carbon\Carbon; | |
use Laracasts\Flash\Flash; | |
use Illuminate\Http\Request; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Support\Facades\Redirect; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! ncsExternalLinks | |
// ================================================== // | |
(function($) { | |
$.fn.ncsExternalLinks = function() { | |
// Open external links in new window | |
$('a, area').filter(function() { | |
return this.hostname && this.hostname !== location.hostname; | |
}).not('.iframe').not('.ajax').not('.local').attr({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Exception; | |
use Laracasts\Flash\Flash; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Auth; | |
use Illuminate\Support\Facades\Hash; | |
use Illuminate\Support\Facades\Redirect; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('admin.layouts.plain') | |
@section('page-meta') | |
<title>{{ page_title('Login') }}</title> | |
@endsection | |
@section('content') | |
<div class="flex-container flex-center vh67"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const elixir = require('laravel-elixir'); | |
elixir(function (mix) { | |
const bowerPath = './vendor/bower_components'; | |
// Stylesheets | |
// -------------------------------------------------- // | |
// Compiles to public/css/app.css | |
mix.less('app.less', 'public/css', null, { |
OlderNewer