| <?php | |
| /** | |
| * Below is an the extended Filament resource your tenant panel resources | |
| * will have to extend so that the queries are scoped properly. | |
| */ | |
| namespace App\Filament; | |
| use Filament\Resources\Resource; |
| update contacts set contact=CONCAT("+99", floor(rand(current_timestamp())*999999999)) where type='phone'; | |
| update users set realname=CONCAT('Random ', floor(rand(current_timestamp())*9999999)), email=CONCAT(CONCAT('random', floor(rand(current_timestamp())*9999999)), '@example.com') where role <> 'admin'; | |
| update users set password='$2y$15$Ha7nHVZApHXfzhrD2HCukuUjjQhIUzPJ0JNWk7KooT6edQFTbeWr6'; /* "admin" .. DON'T RUN FOR STAGING */ | |
| update users set email='admin@example.com' where id=1; | |
| delete from config where group_name='data-provider' and config_key in ('email', 'twitter'); | |
| delete from config where group_name='twitter'; | |
| truncate oauth_refresh_tokens; | |
| truncate oauth_access_tokens; | |
| truncate webhooks; |
| server { | |
| listen 80; | |
| server_name admin.mysite.com www.admin.mysite.com; | |
| } | |
| server{ | |
| location / { | |
| proxy_set_header Host $host; | |
| proxy_pass http://127.0.0.1:3000; | |
| proxy_redirect off; |
| const pool = require('../database/database'); | |
| const { generateId } = require('../functions/id'); | |
| //Import Company Crud Operations | |
| module.exports.addImportCompany = async (req, res) => { | |
| const { name, address, email, phone, total_transactions, remain_transactions, purchase_type } = req.body; | |
| const contact_info_id = generateId("COMP"); | |
| if (!purchase_type || purchase_type.length == 0) { |
title: Setting Up Laravel in Ubuntu / DigitalOcean keywords: servers, laravel, coderstape, coder's tape description: Let's take a look at settting up a server from scratch for Laravel. date: April 1, 2019 tags: servers, laravel permalink: setting-up-laravel-in-ubuntu-digitalocean img: https://coderstape.com/storage/uploads/GZTXUbyGum2xeUZM9qBD5aPv8EKLwG3C8RGcRon4.jpeg author: Victor Gonzalez authorlink: https://github.com/vicgonvt
Making multiple MySQL versions work with Homebrew was tricky to say the least. Fortunately there are 2 new easy ways that I learned of to achieve this.
As @4unkur and @henrytirla commented below, there is this extremely easy to use app called DBngin, which lets you setup multiple databases (not only MySQL) simultaneously using different ports:
| APP_ENV=testing | |
| APP_KEY=base64:blahblah | |
| APP_DEBUG=true | |
| APP_LOG_LEVEL=debug | |
| APP_URL=http://localhost | |
| DB_CONNECTION=mysql | |
| DB_HOST=mysql | |
| DB_PORT=3306 | |
| DB_DATABASE=homestead |
| #!/bin/bash | |
| # Creator: Phil Cook | |
| # Modified: Andy Miller | |
| # | |
| # >>> IMPORTANT: Moved to: https://github.com/rhukster/sphp.sh | |
| # >>> Kept here for legacy purposes | |
| # | |
| osx_major_version=$(sw_vers -productVersion | cut -d. -f1) | |
| osx_minor_version=$(sw_vers -productVersion | cut -d. -f2) | |
| osx_patch_version=$(sw_vers -productVersion | cut -d. -f3) |