ssh -D 8080 -C -N username@IpAddress
Then add SOCKS Proxy in System Preferences > Network with Server 127.0.0.1:8080
.
<?php | |
namespace Tests\Traits; | |
use App\User; | |
use Illuminate\Support\Facades\Gate; | |
use ReflectionMethod; | |
trait AssertsPolicy | |
{ |
ssh -D 8080 -C -N username@IpAddress
Then add SOCKS Proxy in System Preferences > Network with Server 127.0.0.1:8080
.
<?php | |
// add this function to Sage’s app/helpers.php | |
// inspired by nicooprat: https://gist.github.com/nicooprat/2c1a642d102425d3131037e5dc156361 | |
/** | |
* Render callback for ACF $blocks | |
* @param array $block The block settings and attributes. | |
* @param string $content The block inner HTML (empty). | |
* @param bool $is_preview True during AJAX preview. | |
* @param (int|string) $post_id The post ID this block is saved to. |