Tooltips Three Ways

In this episode, we’ll construct a standard tooltip using three techniques: data attributes, Vue directives, and dedicated Vue components.
View the source code for this episode on GitHub.
Source: Laracasts

PHP 7.3: Trailing Commas in Function Calls

Well PHP 7.3 won’t have arrow functions (that would be dreamy). However, trailing commas in function calls is an excellent addition coming to PHP 7.3. In PHP 7.3, trailing commas in function calls will be valid syntax. That is to say, you can use trailing commas when calling functions, but not defining them. Let’s go over the new allows trailing comma syntax coming to PHP 7.3.

Visit Laravel News for the full post.

The post PHP 7.3: Trailing Commas in Function Calls appeared first on Laravel News.

Source: Laravel News

Skill Completion Rate Exercise

Using the techniques we’ve learned in this series, let’s switch to the Laracasts source code, itself. As part of an update that I’m working on, I need to determine the completion rate for all series within a particular skill on the site. Let’s use TDD to build this small addition.
Source: Laracasts

Laravel JSON – A Simple Wrapper Around JSON for Catching Errors

When we wrote “PHP 7.3: A Look at JSON Error Handling,” Jan Östlund mentioned a package he wrote called Laravel JSON. The Laravel JSON package makes encoding and decoding JSON a breeze with exceptions thrown on error immediately. Learn more about how this package provides convenience around working with JSON parsing.

Visit Laravel News for the full post.

The post Laravel JSON – A Simple Wrapper Around JSON for Catching Errors appeared first on Laravel News.

Source: Laravel News

Mobile-First Layouts

To ensure that you have a solid understanding of responsive design, let’s construct a typical bread-and-butter-layout from scratch, using a mobile-first perspective. As you’ll find, the basic building blocks we use in this episode are the same ones you’ll use for every layout-based decision you’ll make.
Source: Laracasts

PHP 7.3: A Look at JSON Error Handling

One of the new features coming to PHP 7.3 is better error handling for ‘json_encode()’ and ‘json_decode()’. The RFC (https://wiki.php.net/rfc/json_throw_on_error) was unanimously accepted by a 23 to 0 vote. Let’s take a look at how we handle JSON errors in <= PHP 7.2, and the new improvements coming in PHP 7.3.

Visit Laravel News for the full post.

The post PHP 7.3: A Look at JSON Error Handling appeared first on Laravel News.

Source: Laravel News

Laravel Localization Package for Vue

“Laravel Localization to Vue” is a new package by Stefan Ninic that converts Laravel localization into a format consumable by JavaScript packages like Lang.js, which is a Laravel translator class in Javascript. The package will help you quickly transform Laravel translations into a format consumable by a Vue.js application.

Visit Laravel News for the full post.

The post Laravel Localization Package for Vue appeared first on Laravel News.

Source: Laravel News

Mobile-First Design

So you’ve become a bit more comfortable at this point. You’ve realized that flexbox solves so many of the layout problems we used to encounter in the early 2000s. But now you’ve hit a new snag: resize the browser width, and suddenly your layout becomes a wreck! Yikes. In this lesson, we’ll review media queries, Tailwind’s responsive helpers, and mobile-first design.
Source: Laracasts

1 2 3 4 5 6 64