openssl genrsa -des3 -out rootCA.key 2048
openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1024 -out rootCA.pem
| Application.vent.on('someEvent', function(someData){ | |
| console.log('Event triggered with ' + someData); | |
| }); | |
| Application.vent.trigger('someEvent', 'some data'); |
| <?php | |
| namespace Tests; | |
| use Exception; | |
| use Illuminate\Foundation\Testing\TestCase as BaseTestCase; | |
| use App\Exceptions\Handler; | |
| use Illuminate\Contracts\Debug\ExceptionHandler; | |
| abstract class TestCase extends BaseTestCase |
| CREATE DATABASE resumes; | |
| CREATE TABLE resumes.users ( | |
| id int(10) UNSIGNED NOT NULL AUTO_INCREMENT, | |
| first_name varchar(50) NOT NULL, | |
| last_name varchar(50) NOT NULL, | |
| email varchar(255) NOT NULL, | |
| phone varchar(10) NOT NULL, | |
| password varchar(255) NOT NULL, | |
| remember_token varchar(100) NULL DEFAULT NULL, |
| CREATE TABLE homestead.users ( | |
| id int(10) UNSIGNED NOT NULL AUTO_INCREMENT, | |
| first_name varchar(50) NOT NULL, | |
| last_name varchar(50) NOT NULL, | |
| email varchar(255) NOT NULL, | |
| password varchar(255) NOT NULL, | |
| created_at timestamp NULL DEFAULT NULL, | |
| updated_at timestamp NULL DEFAULT NULL, | |
| PRIMARY KEY (id), | |
| UNIQUE KEY users_email_unique (email) |
| [xdebug] | |
| xdebug.start_with_request=yes | |
| xdebug.discover_client_host=true | |
| xdebug.max_nesting_level=256 | |
| xdebug.remote_handler=dbgp | |
| xdebug.client_port=9000 | |
| xdebug.idekey=VSCODE | |
| xdebug.mode=debug | |
| xdebug.client_host=host.docker.internal |
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Listen for Xdebug", | |
| "type": "php", | |
| "request": "launch", | |
| "log": false, | |
| "externalConsole": false, | |
| "pathMappings": { |
| <!DOCTYPE html> | |
| <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>{{ config('app.name') }}</title> | |
| @vite(['resources/css/app.css', 'resources/js/app.js']) | |
| </head> |
| <svg class="animate-spin ml-2 mr-2 h-5 w-5 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"> | |
| <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle> | |
| <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path> | |
| </svg> |
| <?php | |
| if (!preg_match('/^(\*|[0-9,\-\/\*]+)\s+(\*|[0-9,\-\/\*]+)\s+(\*|[0-9,\-\/\*]+)\s+(\*|[0-9,\-\/\*]+)\s+(\*|[0-9,\-\/\*]+)$/', $cronExpression)) { | |
| // Invalid expression | |
| } |