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 | |
| json_encode($products->map(function ($data) { | |
| $result['id'] = $data->id; | |
| $result['name'] = $data->title; | |
| return $result; | |
| })) |
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 _ = require('lodash'); | |
| Vue.prototype.trans = string => _.get(window.i18n, string); | |
| const app = new Vue({ | |
| el: '#app', | |
| }); |
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
| /** | |
| * First we will load all of this project's JavaScript dependencies which | |
| * includes Vue and other libraries. It is a great starting point when | |
| * building robust, powerful web applications using Vue and Laravel. | |
| */ | |
| require('../js/loadScripts.js'); | |
| import Vue from 'vue'; | |
| import VueRouter from 'vue-router'; |
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
| #Initialize mod_rewrite | |
| RewriteEngine On | |
| <FilesMatch "\.(html|htm|js|css)$"> | |
| FileETag None | |
| <IfModule mod_headers.c> | |
| Header unset ETag | |
| Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" | |
| Header set Pragma "no-cache" | |
| Header set Expires "Wed, 12 Jan 1980 05:00:00 GMT" | |
| </IfModule> |
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 OverviewController | |
| { | |
| /** | |
| * Process the request and apply to a session. | |
| * | |
| * @param \Illuminate\Http\Request $request | |
| * @param string $filter | |
| * @return \Illuminate\Http\Request |
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\Queries; | |
| use Spatie\QueryBuilder\QueryBuilder; | |
| abstract class AbstractQuery extends QueryBuilder | |
| { | |
| /** | |
| * @var array |
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
| Preferences -> tools -> File watchers | |
| // Program | |
| vendor/path/to/phpcs | |
| // Arguments | |
| --standard=phpcs.xml --encoding=utf-8 $FilePath$ | |
| // Working directory and environments variables | |
| /path/to/your/project/dir |
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 | |
| /** | |
| * This driver serves TYPO3 instances (version 7.0 and up). It activates, if it | |
| * finds the characteristic typo3/ folder in the document root, serves both | |
| * frontend and backend scripts and prevents access to private resources. | |
| */ | |
| class LocalValetDriver extends ValetDriver | |
| { | |
| /* |
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
| cp /usr/local/etc/openssl/cert.pem /usr/local/etc/openssl/cert.pem.bak && cat ~/.config/valet/CA/LaravelValetCASelfSigned.pem >> /usr/local/etc/openssl/cert.pem |
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\Services; | |
| use ArrayIterator; | |
| use Carbon\Carbon; | |
| use Illuminate\Support\Collection; | |
| class TimeService | |
| { |