PHPNews

Storing Jobs in the Database

If you don't have much control over the environment your application runs in, you might consider using the database queue connection. With this approach, …

Written by Laracasts - - Aggregated on Friday May 17, 2019


Failed Jobs

So far, we've reviewed the "happy path" for a job, but what if an error or exception is thrown along the way? If you don't specify a maximum number of tries …

Written by Laracasts - - Aggregated on Friday May 10, 2019


Dispatchable

We've learned how to use the global dispatch() function, but there's an alternative option you should consider as well. By default, each Job class includes a …

Written by Laracasts - - Aggregated on Thursday May 9, 2019


Job Classes and Daemons

Now that you understand how to dispatch a simple closure, let's next create a dedicated Job class, while discussing serialization and daemons.

Written by Laracasts - - Aggregated on Wednesday May 8, 2019


Dispatch Your First Job

Now that you have a basic idea of what a queue is, let's dispatch our first job using Laravel. We'll also learn about delayed job execution, and when you might …

Written by Laracasts - - Aggregated on Tuesday May 7, 2019


Pizza Time

Before we write a single line of code, give me two minutes to provide a real-life illustration of queues and workers. We'll use the example of a pizza delivery …

Written by Laracasts - - Aggregated on Tuesday May 7, 2019


Wrap it Up

A series like this could go on for hundreds of hours, but, at some point, we have to wrap things up. That time is now. Let's do one final review of what we …

Written by Laracasts - - Aggregated on Friday May 3, 2019


Cache Gotchas

If you maintain both your production and staging sites on the same server, it's possible that you'll run into caching or queue-related issues. For example, if …

Written by Laracasts - - Aggregated on Friday April 26, 2019


Staging Workflow

Now that we have a staging site, we can review a basic workflow you might follow when preparing a new feature. We'll create a new feature branch, commit some …

Written by Laracasts - - Aggregated on Wednesday April 24, 2019


Make a Staging Site

The next step is to build a staging site through Laravel Forge. We'll also need to update our domain's DNS to point all staging.laravelscreencasts.com requests …

Written by Laracasts - - Aggregated on Tuesday April 23, 2019


Deploy Your Website

Before we build a staging site, let's first deploy an example website and hook it up to an existing domain I own. Luckily, Laravel Forge makes this a cinch.

Written by Laracasts - - Aggregated on Tuesday April 23, 2019


Hashed API Tokens

Let's next discuss how to generate hashed API tokens that Laravel can validate against. As of Laravel 5.8, we only need to visit the config/auth.php> file …

Written by Laracasts - - Aggregated on Thursday April 18, 2019


Token-Based API Authentication

Now that you've learned how to make cross-origin AJAX requests, let's move on to the next step: API authentication. In this episode, we'll use a token-based …

Written by Laracasts - - Aggregated on Tuesday April 16, 2019


Object-Oriented JavaScript

If we take another look at our NewProjectModal file, you'll notice that most of the JavaScript deals with the submission and handling of the form. It sure …

Written by Laracasts - - Aggregated on Monday April 15, 2019


The New Project Modal: Tasks

There's one final step to complete: our controller doesn't yet allow tasks to be created alongside the project. Let's fix that now. View the source code for …

Written by Laracasts - - Aggregated on Friday April 12, 2019