Tag: Laravel

In this episode, come along as I prepare a login modal from scratch. As it turns out, this will provide a number of useful real world examples for us to work through. How do you display and hide a modal from anywhere in your app? Can we display validation errors without manually performing a full page refresh? What can we use to rapidly style our form? And might we implement one of those fancy loading spinners after the "Log In" button is pressed? All of these questions (and more) will be answered.
Source: Laracasts

Laravel Spark 6.0 is now available and this is one of the biggest updates yet. Some of the features of this release include localization, per seat pricing, a new UI and more. Here is a look at some of the improvements you can expect.

A frequent testing question that pops up relates to how you go about testing validation rules. Or, in other words, if we need to ensure that, say, a valid email address is required when a contact form is submitted by the user, how exactly do we do that? I’ll show you how in this episode, using a real world example.
Source: Laracasts

Now that we understand what the problem is, we can implement a solution. In this episode, we’ll switch to using a private channel. As part of this process, we can also specify any number of broadcasting authorization rules within routes/channels.php.
Source: Laracasts

As a basic rule, if the event you’re broadcasting is sensitive in nature (order details, direct messaging, etc.), then you should reach for a PrivateChannel. This way, you can assign special authorization rules for the message. Let’s review why this is so important.
Source: Laracasts

Behind the scenes, Laravel Mix leverages Babel’s env preset, when transforming your code. However, from time to time, you may need to register additional plugins. Let’s review exactly how to do so in this episode.
Source: Laracasts

The `mix.version()` call will append a unique hash to each file within your generated `mix-manifest.json` file. This can be used to instruct your server when to "bust the cache," and fetch a new copy of the related asset.
Source: Laracasts

Mix provides out-of-the-box support for Browsersync, which allows us to detect and refresh the browser each time a relevant asset of yours has changed. No longer will you have to manually refresh the browser over and over to review small, visual tweaks.
Source: Laracasts

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 PostCSS plugins as layers of an onion, so to speak. Each layer has the chance to operate upon your stylesheet, and modify it in some way. Once complete, those styles are then passed on to the next layer of the onion. Let’s review this workflow, when using Laravel Mix.
Source: Laracasts