This file contains hidden or 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 | |
$routes = collect(app('router')->getRoutes()) | |
->groupBy(fn (\Illuminate\Routing\Route $route) => $route->getPrefix()) | |
->reject(fn ($route, $prefix) => in_array($prefix, ['_ignition', 'sanctum'])); | |
$routes->put('web', $routes->pull('')); | |
$webRoutes = $routes | |
->get('web') | |
->groupBy(fn (\Illuminate\Routing\Route $route) => \Illuminate\Support\Str::before($route->getAction('controller'), '@')) |
This file contains hidden or 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
1033edge.com | |
11mail.com | |
123.com | |
123box.net | |
123india.com | |
123mail.cl | |
123qwe.co.uk | |
126.com | |
150ml.com | |
15meg4free.com |
This file contains hidden or 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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains hidden or 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 | |
function page($page = 1) { | |
$request = (new \GuzzleHttp\Client()) | |
->get('https://api.github.com/repos/user/repo/pulls', [ | |
'auth' => ['username', 'password'], | |
'headers' => [ | |
'User-Agent' => 'CSV export', | |
'Accept' => 'application/vnd.github.v3+json', | |
], |
This file contains hidden or 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 | |
/** | |
* @codeCoverageIgnoreStart | |
*/ | |
class Unittest_Model_TestCase extends Unittest_Database_TestCase { | |
// Set the Unit Test database connection for our ORM calls | |
public static function setUpBeforeClass() | |
{ | |
Database::$default = Kohana::$config->load('unittest.db_connection'); |
This file contains hidden or 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 | |
$pages = 1; | |
function req($page = 1) | |
{ | |
$request = Request::factory('https://api.github.com/repos/ORGANISATION/REPOSITORY/issues') | |
->headers('Authorization', 'Basic '.base64_encode('USERNAME:PASSWORD')) | |
->headers('User-Agent', 'CSV export') | |
->query([ |