This is a simple breakdown of how I deploy Bedrock+Sage using RunCloud and Envoyer.
cd {{ release }}/web/app/themes/sage| import {JSDOM} from 'jsdom'; // npm i jsdom | |
| function htmlToObj(htmlString) { | |
| const newString = htmlString.replace('<br />','\n') | |
| // string hacks for edge cases | |
| // .replace('<small>','') | |
| // .replace('</small>','') | |
| // .replace('<b>','<strong>') | |
| // .replace('</b>','</strong>'); | |
| const dom = new JSDOM(newString); | 
| <?php | |
| namespace App\Livewire; | |
| use Livewire\Attributes\Url; | |
| use Livewire\Component; | |
| use WP_Query; | |
| class PostSearch extends Component | |
| { | 
| <?php | |
| use function Env\env; | |
| /** | |
| * Plugin Name: PHPMailer SMTP | |
| * Plugin URI: https://roots.io/bedrock/ | |
| * Description: Simple PHPMailer SMTP configuration for Bedrock. | |
| * Version: 1.0.0 | |
| * Author: Roots | 
| <?php | |
| namespace App\Providers; | |
| use Roots\Acorn\ServiceProvider; | |
| class ThemeServiceProvider extends ServiceProvider | |
| { | |
| /** | |
| * Register any application services. | 
Enough people loved this gist, so it's now a Github repository!
⭐ Please use the "The Events Calendar Reset" on Github going forward. ⭐
| <?php | |
| namespace App\Providers; | |
| use Roots\Acorn\ServiceProvider; | |
| use Illuminate\Support\Str; | |
| use function Roots\view; | |
| class WooCommerceServiceProvider extends ServiceProvider | 
Snippets frequently used with Sage
In your command-line run the following commands:
brew doctorbrew updateI set up the wiki page for the valet-wsl project and moved the install guide there. This way it can have user contributions. Please have all disscussions or issues under the valet-wsl project so I can be aware of it. Please go to Valet Wsl Installation Guide