PHPNews

Adding PostCSS Plugins

PostCSS may be used standalone, or even as a secondary step after your core Sass/Less compilation. Either way, the end result will be the same. Think of …

Written by Laracasts - - Aggregated on Thursday December 14, 2017


JavaScript Bundling

The mix.js() command is your go-to method for any JavaScript bundling needs. This will take care of ES2017 compilation, tree shaking, minification, and more. …

Written by Laracasts - - Aggregated on Monday December 11, 2017


Decoding Your NPM Scripts

Out of the box, you'll notice that Laravel includes a number of helpful NPM scripts for triggering webpack. To start, the most relevant ones are dev, watch, …

Written by Laracasts - - Aggregated on Thursday December 7, 2017


Start Compiling Fast

Let's begin by installing the necessary dependencies, and compiling our JavaScript and Sass as quickly as possible, using Mix. It's easy!

Written by Laracasts - - Aggregated on Thursday December 7, 2017


WYSIWYG: Part 2

Let's continue on with our Trix editor implementation. There are a few more places where we'll need to replace a standard textarea with the new wysiwyg …

Written by Laracasts - - Aggregated on Wednesday December 6, 2017


WYSIWYG

At the moment, we're using a basic textarea for the body of each forum thread or reply. Let's upgrade these inputs to powerful WYSIWYG text editors, using Trix.

Written by Laracasts - - Aggregated on Tuesday December 5, 2017


Type Checking JavaScript Files

What if we could add a single commented line to the top of any vanilla JavaScript file, and instantly activate advanced TypeScript type checking and error …

Written by Laracasts - - Aggregated on Thursday November 30, 2017


A Countdown Vue Component

Today, I need to whip up a countdown timer for an upcoming sale. While we could pull in a dedicated plugin for this functionality, it's fairly simple to …

Written by Laracasts - - Aggregated on Tuesday November 21, 2017


Pour Me a Glass of ESLint

Let's supercharge our JavaScript (including Vue templates) error and style guide detection with ESLint. Once installed, you'll stop and wonder how you were …

Written by Laracasts - - Aggregated on Friday November 17, 2017


PHP Full Workflow Review

Before moving on to various JavaScript conveniences and optimizations for Visual Studio Code, let's do a full PHP recap and review.

Written by Laracasts - - Aggregated on Thursday November 16, 2017


The Context Menu Convenience

We're getting nitpicky at this point, but that's okay. Having to reach for the mouse to right-click on a symbol to perform any kind of contextual action is a …

Written by Laracasts - - Aggregated on Thursday November 16, 2017


Better PHPUnit Execution

Built by Caleb Porzio, the "Better PHPUnit" extension offers us an incredibly clean workflow for building test-driven applications.

Written by Laracasts - - Aggregated on Thursday November 16, 2017


PHP Automatic Imports

Let's review some key PHP workflow techniques in this episode. What's the quickest way to import a class? Or how can we shorten fully qualified class names in …

Written by Laracasts - - Aggregated on Thursday November 16, 2017