This file contains hidden or 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 hidden or 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
| /* | |
| |-------------------------------------------------------------------------- | |
| | Administrator Routes | |
| |-------------------------------------------------------------------------- | |
| */ | |
| Route::group(['prefix' => 'admin', 'middleware' => ['auth', 'admin']], function () { | |
| // AdminController | |
| Route::get('/', 'AdminController@dashboard')->name('admin.dashboard'); | |
| Route::get('account', 'AdminController@getAccount')->name('admin.account'); | |
| Route::post('account', 'AdminController@postAccount')->name('admin.account.update'); |
This file contains hidden or 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, { |
This file contains hidden or 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
| "ignore_regexes": [ | |
| "\\.sublime-(project|workspace)", "sftp-config(-alt\\d?)?\\.json", | |
| "sftp-settings\\.json", "/venv/", "\\.svn/", "\\.hg/", "\\.git/", | |
| "\\.bzr", "_darcs", "CVS", "\\.DS_Store", "Thumbs\\.db", "desktop\\.ini", | |
| "\\.env", "vendor/", "node_modules/", "tests/", | |
| "storage/app/public/", | |
| "storage/framework/cache/", "storage/framework/sessions/", "storage/framework/views/", | |
| "storage/logs/" | |
| ], |
This file contains hidden or 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 hidden or 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 hidden or 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 | |
| use Carbon\Carbon; | |
| use Nissi\Proxies\Date; | |
| use Nissi\Proxies\Text; | |
| use Nissi\Proxies\Format; | |
| use Nissi\Proxies\Number; | |
| use Nissi\Proxies\Inflect; | |
| use Nissi\Proxies\Geography; | |
| use Nissi\ValueObjects\Gravatar; |
This file contains hidden or 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. |