Laravel Concepts – Policy, Event, Listener

There are bunch of advanced Laravel features and we will use them in real-world projects. Policy, Event, Listeners are widely used Laravel features. Laravel Policies are a great way to protect actions on your Eloquent Model. Laravel Policies are the part of Laravel Authorization that helps you to protect resources from unauthorized access. Laravel’s events …

PM2 — Restart Processes After System Reboot

Startup Script Generation PM2 ships with the functionality to generate startup scripts for multiple init systems. These scripts are executed on system boot and with that spawn the PM2 process itself which is required to (re)start application servers. You can generate a startup script for your server’s init system by either using PM2’s auto-detection feature …

How to fix node-gyp errors for windows users

For those who didn’t follow the MS proscribed order (see Xv’s answer) you can still fix the problem. MSBuild uses the VCTargetsPath to locate default cpp properties but cannot because the registry lacks this String Value. Check for the String Value Launch regedit Navigator to HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0 Inspect VCTargetsPath key. The value should = “$(MSBuildExtensionsPath32)\Microsoft.Cpp\v4.0\“ To fix Launch regedit Navigator to HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0 Add …

ECMAScript Proxy Object

Proxy object is used to define custom behavior for fundamental operations (e.g. property lookup, assignment, enumeration, function invocation, etc). ================================================================handler: Placeholder object which contains traps. traps: The methods that provide property access. This is analogous to the concept of traps in operating systems. target: Object which the proxy virtualizes. It is often used as storage backend …

Draft.js

Draft.js is a framework for building rich text editors in React, powered by an immutable model and abstracting over cross-browser differences. Draft.js makes it easy to build any type of rich text input, whether you’re just looking to support a few inline text styles or building a complex text editor for composing long-form articles. https://draftjs.org/