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 InfyOm\Generator\Utils\ResponseUtil; | |
use Rinvex\Fort\Http\Controllers\AuthorizedController; | |
use Response; | |
/** |
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 | |
Route::group([ | |
'prefix' => config('infyom.laravel_generator.prefixes.path'), | |
'middleware' => ['rinvex.fort.backend', 'can:access-dashboard'], | |
'as' => config('infyom.laravel_generator.prefixes.path').'.', | |
], function () { | |
Route::group(['as' => 'users.', 'prefix' => 'users'], function () { | |
Route::get('/', ['as'=> 'index', 'uses' => 'Admin\UserController@index']); |
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
+--------+----------+--------------------------------------+---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+ | |
| Domain | Method | URI | Name | Action | Middleware | | |
+--------+----------+--------------------------------------+---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+ | |
| | GET|HEAD | / | | Closure |
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
var gulp = require('gulp'); | |
var uglify = require('gulp-uglify'); | |
var cleanCSS = require('gulp-clean-css'); | |
var pump = require('pump'); | |
var shell = require('gulp-shell'); | |
var Elixir = require('laravel-elixir'); | |
var del = require('del'); | |
var Task = Elixir.Task; | |
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
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/', |
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
var elixir = require('laravel-elixir'); | |
//set production mode by default | |
elixir.config.production = true; | |
elixir(function(mix) { | |
var paths = { |
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 | |
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'), |
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 | |
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) |
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 | |
//app/Console/Command/Sync.php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Foundation\Inspiring; | |
class Sync extends Command | |
{ | |
/** |