npm init -y
Create a folder called src and add an empty index.js file. The code that webpack compiles goes in here including any Javascript modules and the main Tailwind file.
# Location: /mnt/c/windows/system32/drivers/etc/hosts | |
127.0.0.1 virtualhost.local www.virtualhost.local |
When setting these options consider the following:
sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log
In your command-line run the following commands:
brew doctor
brew update
// This configuration is meant to be used in WSL v1 for Windows | |
// It is also not maintained anymore, as I switched to Windows Terminal | |
module.exports = { | |
config: { | |
// Disabling WebGL renderer to make font-ligatures work | |
// https://github.com/tolbertam/hyper-font-ligatures#disabling-webgl-rendering | |
webGLRenderer: false, | |
// default font size in pixels for all tabs |
const req = require.context('./components/', true, /\.(js|vue)$/i); | |
req.keys().map(key => { | |
const name = key.match(/\w+/)[0]; | |
return Vue.component(name, req(key)) | |
}); |
Next.js, Nginx with Reverse proxy, SSL certificate
<?php | |
class PageController extends \App\Http\Controllers\Controller | |
{ | |
public function show() | |
{ | |
$slug = request()->segment(1); | |
$page = \TCG\Voyager\Models\Page::where('slug', $slug) | |
->firstOrFail(); | |
<?php | |
use Illuminate\Support\Facades\Password; | |
# Generate a token in the same style as laravels password reset tokens. | |
# Will generate something like: 785f616c4978a87ad65a899ed4133b358a4697649c55b0965a7ebb7486bd9801 | |
/** @var DatabaseTokenRepository */ | |
$repo = Password::getRepository(); | |
$token = $repo->createNewToken($user); |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis