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 | |
| /* | |
| * NOTICE OF LICENSE | |
| * | |
| * Part of the Rinvex Fort Package. | |
| * | |
| * This source file is subject to The MIT License (MIT) | |
| * that is bundled with this package in the LICENSE file. | |
| * |
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
| public function update(LessonCrudRequest $request) | |
| { | |
| $this->crud->hasAccessOrFail('update'); | |
| // replace empty values with NULL, so that it will work with MySQL strict mode on | |
| foreach ($request->input() as $key => $value) { | |
| if (empty($value) && $value !== '0') { | |
| $request->request->set($key, 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
| <?php | |
| namespace App\Http\Controllers\Admin; | |
| use InfyOm\Generator\Utils\ResponseUtil; | |
| use Rinvex\Fort\Http\Controllers\AuthorizedController; | |
| use Response; | |
| /** |
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 | |
| 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 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
| +--------+----------+--------------------------------------+---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+ | |
| | Domain | Method | URI | Name | Action | Middleware | | |
| +--------+----------+--------------------------------------+---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+ | |
| | | GET|HEAD | / | | Closure |
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
| 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 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
| 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 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
| var elixir = require('laravel-elixir'); | |
| //set production mode by default | |
| elixir.config.production = true; | |
| elixir(function(mix) { | |
| var paths = { |