Consent

This site uses third party services that need your consent.

Skip to content
Steven Roland

PHP

PHP is a popular server-side scripting language used for web development. It is embedded in HTML and enables the creation of dynamic web pages, handling tasks such as form processing and database connectivity.

Setting Up a Custom BelongsTo Relationship in Laravel Nova

Learn how to set up a BelongsTo field called "Partner" in Laravel Nova that relates to a Team model. Define the relationship in your model and configure the Nova resource to display it intuitively, ensuring a user-friendly admin interface.

Generating Unique Lowercase Handles in Laravel Models

This blog post explains how to generate unique, lowercase handles in Laravel models. It covers defining the model, creating a unique key method, using model events for automatic handle assignment, and allowing user overrides for customization.

Creating a Simple PHP Wrapper for Google reCAPTCHA

Create a reusable PHP class for Google reCAPTCHA to protect web forms from spam that supports static methods, default keys with override options, and easy integration into forms. It simplifies displaying the reCAPTCHA widget and verifying responses.

Customizing Taxonomy Routes in Statamic

Learn how to customize taxonomy routes in Statamic for better site navigation and SEO. Use default routes or opt for custom solutions with Laravel or the Bonus Routes addon to create user-friendly and integrated URLs.

Building a Simple Marketing Website with Laravel Folio

Learn to build a simple marketing website using Laravel Folio. Set up a Laravel project, install Folio, create pages with Blade templates, and maintain consistency with layouts. Quickly create dynamic content for your marketing site.

Laravel with a Legacy Database

If you ever need to work with a database that doesn't quite follow convention, remember that Laravel has some pretty sweet built-in functionality to help you use that old data in new ways.

Simple PHP CSRF Token

CSRF tokens, or anti-CSRF tokens, are a security measure used to prevent Cross-Site Request Forgery (CSRF) attacks. They work by ensuring that a submitted request is only accepted by a web application if it contains a string that the server expects.

Using CSRF Tokens with AJAX in PHP

Secure AJAX requests in PHP by implementing CSRF tokens, ensuring each asynchronous submission is authorized and protected against attacks.

Building a Blockchain with PHP

Learn how to build a blockchain with PHP, explore its benefits, and discover real-world applications, from supply chain management to financial services.

How to Register Global Functions in PHP Using Composer

Learn how to register global functions in PHP using Composer. This guide covers creating a helpers file, configuring Composer, updating the autoloader, and using global functions. Best practices and tips for efficient implementation are also discussed.