Render Functions: Part 1

So far in this series, we’ve used templates to declare our desired HTML structures. However, there’s another way: render functions. Though you won’t reach for them nearly as often, they nonetheless serve an important role. In this lesson we’ll review the basics.
Source: Laracasts

Automatically Open Files on Artisan “Make” Commands

“Open on Make” is a neat little package by Andrew Huggins that makes it easy to have newly created files open in your editor of choice. When you run commands like ‘php artisan make:controller’, this package will listen for the command and open the file in the editor that you configure.

Visit Laravel News for the full post.

The post Automatically Open Files on Artisan “Make” Commands appeared first on Laravel News.

Source: Laravel News

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

1 2 3 61