Exemplo n.º 1
0
 public function isAction($url)
 {
     return Str::startsWith(Uri::createFromString($url)->getFragment(), $this->config['needle'] . ':', true);
 }
Exemplo n.º 2
0
 public function testCanAssertAStringStartsWith()
 {
     $this->assertTrue(Str::startsWith('foobar', 'foo'));
     $this->assertFalse(Str::startsWith('barfoo', 'foo'));
 }