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 | |
| class Human { | |
| public $name; | |
| public $values = []; | |
| public $surname; | |
| public function __construct($name) | |
| { | |
| $this->name = $name; |
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
| module.exports = { | |
| root: true, | |
| parser: 'babel-eslint', | |
| parserOptions: { | |
| "sourceType": "module", | |
| }, | |
| "env": { | |
| "browser": true, | |
| }, | |
| 'extends': [ |
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
| { | |
| name: 'lease_wrap_create', | |
| path: '/lease', | |
| component: 'lease/Lease', | |
| redirect: { | |
| name: 'lease_step1', | |
| }, | |
| children: [ | |
| { | |
| path: 'step1', |
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
| { | |
| "scripts": { | |
| "dev": "NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", | |
| "watch": "NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", | |
| "hot": "NODE_ENV=development webpack-dev-server --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", | |
| "production": "NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" | |
| } | |
| } |
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
| { | |
| name: 'lease_wrap_create', | |
| path: '/lease', | |
| component: 'lease/Lease', | |
| redirect: { | |
| name: 'lease_step1', | |
| }, | |
| children: [ | |
| { | |
| path: 'step1', |
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
| { | |
| "presets": ["es2015", "es2016", "es2017"], | |
| "plugins": ["transform-runtime", "syntax-dynamic-import"] | |
| } |
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
| { | |
| "root": true, | |
| "parser": "vue-eslint-parser", | |
| "parserOptions": { | |
| "parser": "babel-eslint", | |
| "ecmaVersion": 2017, | |
| "sourceType": "module" | |
| }, | |
| "env": { | |
| "browser": true |
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
| <template> | |
| <div id="app" @keyup.esc="closeAllModal"> | |
| <div ref="modals"> | |
| <!-- Sign in --> | |
| <transition name="slide-fade" mode="out-in"> | |
| <div v-if="$store.getters.signInModal" class="modal-wrap"> | |
| <div class="modal-custom" v-on-click-outside="closeSignInModal"> | |
| <span @click="closeSignInModal" class="close"></span> | |
| <h1 class="paragraph-head">{{ $t('translation.login') }}</h1> | |
| <p>{{ $t("translation.welcomeToKantor") }}</p> |
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 { mix } = require('laravel-mix'); | |
| mix.js('resources/assets/js/app.js', 'public/js') | |
| .sass('resources/assets/sass/app.scss', 'public/css') | |
| .webpackConfig({ | |
| module: { | |
| rules: [ | |
| { | |
| test: /\.(js|vue)$/, | |
| enforce: 'pre', |
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 changePassword() | |
| { | |
| try { | |
| $user = User::findOrFail(request()->input('id')); | |
| if (Hash::check(request()->input('password'), $user->password)) { | |
| throw ValidationException::withMessages([ | |
| 'password' => ['translation.newPasswordMustBeDifferent'] | |
| ]); | |
| } |