This is a simple breakdown of how I deploy Bedrock+Sage using RunCloud and Envoyer.
cd {{ release }}/web/app/themes/sage
<?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 doctor
brew update
I 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
<?php | |
/** | |
* WPForms custom redirect | |
* | |
* @param string $url URL form will redirect to | |
* @param int $form_id Form ID | |
* @param array $fields Submitted form fields | |
* @return string | |
*/ | |
function wpf_custom_redirect( $url, $form_id, $fields ) { |