A set of snippets I use in Laravel Nova
cd ./nova
yarn
mv webpack.mix.js.dist webpack.mix.js
<?php | |
use Illuminate\Notifications\Notification; | |
use SensitiveParameter; | |
class MagicLoginLink extends Notification | |
{ | |
use Queueable; | |
public function __construct(#[SensitiveParameter] protected string $token) {} |
FILESYSTEM_DRIVER=s3 | |
QUEUE_CONNECTION=sqs | |
AWS_DEFAULT_REGION=us-east-1 | |
AWS_BUCKET=bucket1 | |
AWS_ENDPOINT=http://localhost:4566/ | |
AWS_USE_PATH_STYLE_ENDPOINT=true | |
SQS_QUEUE=queue1 | |
SQS_PREFIX=http://localhost:4566/000000000000/ |
<?php | |
Route::get('/stripetoken', function() | |
{ | |
$client = new \GuzzleHttp\Client(); | |
$pubKey = 'pk_test_xxxxxxxxxxxxx'; | |
$cardNumber = "4242424242424242"; | |
$cvc = "123"; | |
$expMonth = "11"; | |
$expYear = "2018"; |
#!/bin/sh | |
printf "Switching php to version 5.6 with symlinks.\n" | |
printf "Press any key to continue...\n" | |
read CONTINUE | |
printf "Creating backups..." | |
# Backup original binaries |
/** | |
* A simple forEach() implementation for Arrays, Objects and NodeLists | |
* @private | |
* @param {Array|Object|NodeList} collection Collection of items to iterate | |
* @param {Function} callback Callback function for each iteration | |
* @param {Array|Object|NodeList} scope Object/NodeList/Array that forEach is iterating over (aka `this`) | |
*/ | |
var forEach = function (collection, callback, scope) { | |
if (Object.prototype.toString.call(collection) === '[object Object]') { | |
for (var prop in collection) { |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta name="description" content="Webpage description goes here" /> | |
<meta charset="utf-8"> | |
<title>Change_me</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="author" content=""> | |
<link rel="stylesheet" href="css/style.css"> |