Search

Showing 7 of 587 result(s)

/blog/2021/02/20/integrating-laravel-spark-and-statamic-3#content-improving-our-registration-page

Right now, if a user attempts to register without providing a name they will receive an error. This happens because our users database table has the name column set to non-nullable. We could update our migrations and start over there, instead we...

/blog/2021/02/20/integrating-laravel-spark-and-statamic-3#content-configuring-stripe-and-spark-creating-our-product

With a few Statamic template adjustments out of the way, let's get to some fun stuff and start configuring Laravel Spark and Stripe. In this section, we will create a new product within the Stripe dashboard with monthly and yearly recurring...

/blog/2021/02/20/integrating-laravel-spark-and-statamic-3#content-configuring-strip-and-spark-stripe-api-keys

Do not share your own API key values on the Internet like this. These are just example values! We will now configure the Stripe API keys required for our integration. The Spark documentation for this step can be located at...

/blog/2021/02/20/integrating-laravel-spark-and-statamic-3#content-configuring-stripe-and-spark-web-hooks

Do not share your own API key values on the Internet like this. These are just example values! In a previous step, we started a terminal window and shared our development site using Expose. Locate the Expose-URL (or equivalent) now so we can use...

/blog/2021/02/20/integrating-laravel-spark-and-statamic-3#content-restricting-access-creating-an-antlers-tag

In this section, we will create a new Antlers tag that will check if the currently authenticated user (if there is one) has an active billing subscription. We can then use this tag in our site's template to restrict access to our content. From the...

/blog/2021/02/20/integrating-laravel-spark-and-statamic-3#content-selectively-locking-content-behind-a-paywall

In the previous section we implemented a custom Antlers tag that can be used to block access to content entirely if the current user does not have an active billing subscription. It works, but does not make things easy if we want to have a mix of...

/blog/2021/09/12/creating-a-customized-statamic-3-500-error-page#content-creating-a-custom-exception-class

We are going to create a custom exception class just to observe how our template variables change depending on the type of error that was thrown. To do this, create a new PHP file at app/CustomException.php with the following contents: Now that...