- Dynamic Dispatch
- Dynamic Method
- Ghost Methods
- Dynamic Proxies
- Blank Slate
- Kernel Method
- Flattening the Scope (aka Nested Lexical Scopes)
- Context Probe
- Class Eval (not really a 'spell' more just a demonstration of its usage)
- Class Macros
🏴☠️
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 Laravel\Dusk\Concerns; | |
use Exception; | |
use Facebook\WebDriver\WebDriverKeys; | |
trait InteractsWithElements | |
{ | |
/** |
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 App\Models; | |
class Application extends Model | |
{ | |
/** | |
* The attributes that should be mutated to dates. | |
* | |
* @var array |
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; | |
use Illuminate\Foundation\Application; | |
use Illuminate\Contracts\Console\Kernel; | |
trait CreatesApplication | |
{ | |
/** |
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 | |
class MarkdownConverter | |
{ | |
protected = $original; | |
protected = $formatted; | |
public function convert(string $html) | |
{ | |
$this->original = $html; |
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
<script> | |
(function (i,s,o,g,r,a,m) { | |
i['GoogleAnalyticsObject'] = r; | |
i[r] = i[r] || function () { | |
(i[r].q = i[r].q || []).push(arguments) | |
}; | |
i[r].l = 1*new Date(); | |
a = s.createElement(o); | |
m = s.getElementsByTagName(o)[0]; | |
a.async = 1; |
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; | |
use Illuminate\Contracts\Auth\Access\Gate; | |
use Illuminate\Foundation\Testing\TestCase as BaseTestCase; | |
abstract class TestCase extends BaseTestCase | |
{ | |
use CreatesApplication; |
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
# Change to the project directory | |
cd /home/forge/appname.com | |
# Put the application into maintenance mode | |
php artisan down | |
# Get the latests changes | |
git pull origin master | |
# Install composer dependecies |
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
module.exports = { | |
"src_folders": [ | |
"tests/nightwatch" // Where you are storing your Nightwatch e2e/UAT tests | |
], | |
"output_folder": "./reports", // reports (test outcome) output by nightwatch | |
"selenium": { // downloaded by selenium-download module (see readme) | |
"start_process": true, // tells nightwatch to start/stop the selenium process | |
"server_path": "/usr/local/bin/selenium-server-standalone.jar", | |
"host": "127.0.0.1", | |
"port": 4444, // standard selenium port |