- Install SquidMan
https://squidman.net/squidman/
- Add New Host File /etc/private_hosts
Add entries to redirect your traffic
- In the SquidMan Settings
| create or replace function qx.create_google_storage_url( | |
| file_path text, | |
| bucket text default 'qx-media-unstable', | |
| request_location text default 'auto', | |
| request_service text default 'storage', | |
| request_type text default 'goog4_request' | |
| ) | |
| returns text | |
| volatile | |
| language plpgsql |
https://squidman.net/squidman/
Add entries to redirect your traffic
| const fs = require('fs'); | |
| const webpack = require('webpack'); | |
| const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| // Used to replace vendor imports with empty string | |
| const ConstDependency = require('webpack/lib/dependencies/ConstDependency'); | |
| function hashString(str) { | |
| var hash = 0, | |
| i, | |
| chr; |
| import NProgress from "nprogress"; | |
| window.NProgress = NProgress; | |
| export default function loadProgressBar(config) { | |
| let timeoutSet = false; | |
| let requestsCounter = 0; | |
| let spinnerTimeout = null; | |
| const setupStartProgress = () => { | |
| axios.interceptors.request.use((config) => { |
| # To enable CORS you should add lines with CORS rules below to your valet.conf file | |
| # Find the file /usr/local/etc/nginx/valet/valet.conf - this is Valet conf for Nginx | |
| # of try to execute `locate valet.conf` and find the `valet.coinf` in `nginx` subdirectory | |
| # after you edit your valet.conf do not forget to execute `valet restart` | |
| server { | |
| listen 80 default_server; | |
| root /; | |
| charset utf-8; | |
| client_max_body_size 128M; |
| const path = require("path"); | |
| const VarieBundler = require("varie-bundler"); | |
| const ENV = require("dotenv").config().parsed; | |
| module.exports = function(env, argv) { | |
| return new VarieBundler(argv, __dirname) | |
| .entry("app", ["resources/js/app/app.ts", "resources/sass/app.scss"]) | |
| .aliases({ | |
| "@app": path.join(__dirname, "resources/js/app"), | |
| "@views": path.join(__dirname, "resources/js/views"), | |
| "@store": path.join(__dirname, "resources/js/store"), |
| { | |
| mode: 'development', | |
| context: '/Users/luke/Code/opensource/varie/varie', | |
| devtool: 'eval-source-map', | |
| stats: { | |
| hash: false, | |
| chunks: false, | |
| modules: false, | |
| source: false, | |
| reasons: false, |
| { | |
| "authHost": "https://codepier.io", | |
| "authEndpoint": "/broadcasting/auth", | |
| "clients": [ | |
| { | |
| "appId": "keyhere", | |
| "key": "keyhere" | |
| } | |
| ], | |
| "database": "redis", |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| /** | |
| * The problem : i want to retrieve articles with their current revision of the status of Pending. | |
| * | |
| * Go to the controller, see that im using the scope of `hasType`, follow through into the article model | |
| * you will see that we are using a `whereHas` . Whats funny is its working in the fact if `NONE` of the article revisions | |
| * have a status of pending it works! But if `1` has a status of `pending` it will return the latest revision even if its not | |
| * pending | |
| */ |