This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$service->data_ga->get( | |
'ga:ANALYTICS_VIEW_ID_HERE', | |
'2008-01-01', | |
'today', | |
'ga:pageviews', | |
[ | |
'filters' => 'ga:hostname==subdomain.mydomain.com', | |
'dimensions' => 'ga:pagePath' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tests\Browser\Components; | |
use Laravel\Dusk\Browser; | |
use Laravel\Dusk\Component as BaseComponent; | |
class Multiselect extends BaseComponent | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Laravel\Dusk\Browser; | |
Browser::macro('clearVue', function ($field) { | |
$field = $this->resolver->resolveForTyping($field); | |
foreach (range(1, strlen($field->getAttribute('value'))) as $index) { | |
$field->sendKeys($this->parseKeys(['{backspace}'])); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 . Check the current status of ssh-agent: Get-Service | select -property name,starttype | |
2. Set the new type :`Set-Service -Name ssh-agent -StartupType Manual | |
3. Start it: Start-Service ssh-agent |