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.
PHP
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.
Understanding the Differences Between PDO and MySQLi in PHP
In this article, we will explore the differences between PDO and MySQLi to help developers make informed decisions based on their specific needs.
Deep Dive into Laravel Queues: Enhancing Performance and Scalability
A queue is a system used to manage and execute tasks asynchronously. In the context of Laravel, queues enable you to delay the execution of time-consuming operations, such as sending emails, processing large datasets, or generating complex reports.
Mastering Laravel: Building Powerful Web Applications
Whether you're a beginner or an experienced developer, mastering Laravel can significantly enhance your web development skills.
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.
Generating Randomized Slugs in Laravel: A Step-by-Step Guide
Learn how to generate unique, memorable slugs in Laravel using random combinations of adjectives and nouns. This method enhances URL usability, offering up to 225 combinations with customizable word lists for diverse applications.
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.
Implementing Per-Form CSRF Tokens in PHP
Enhance security by implementing per-form CSRF tokens in PHP, ensuring each form submission is uniquely validated and protected against attacks.
Implementing Single-Use Tokens with PHP Sessions
Learn to implement single-use tokens in PHP using sessions for secure, database-free validation of sensitive actions like form submissions.
Highlights from Taylor Otwell's Laracon US 2024 Keynote
Taylor Otwell's Laracon US 2024 keynote unveiled a VS Code extension, new Laravel features, Inertia v2.0, and Laravel Cloud, enhancing development and deployment.
Setting Up Laravel Pint in a Non-Laravel Project
Learn how to set up Laravel Pint in any PHP project to maintain consistent coding style, leveraging its capabilities beyond Laravel applications.
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.
Leveraging Blockchain in PHP for Supply Chain Management
Explore how to adapt a PHP-based blockchain for supply chain management. Learn about implementing product traceability, quality assurance, and smart contracts, with a real-world farm-to-table example.
Building and Using a Blockchain in PHP with Decentralized Applications (DApps)
Explore how to integrate PHP-based blockchain with Decentralized Applications (DApps). Learn about smart contract integration, decentralized storage, and user authentication, with a practical example of a decentralized marketplace.
Blockchain-Based Identity Verification: Revolutionizing Digital Trust
Explore how blockchain technology revolutionizes identity verification, offering enhanced security, privacy, and user control. Learn about its applications across various sectors and how to implement blockchain-based identity verification in PHP applications.
Smart Contracts and Decentralized Applications (DApps): Expanding the PHP Blockchain Ecosystem
Explore how PHP can be used to create Decentralized Applications (DApps) that interact with smart contracts. Learn about integration techniques, real-world examples, and implementation challenges in building blockchain-based solutions with PHP.
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.
How to Create a Cookie Consent Banner with PHP and JavaScript
Learn how to create a cookie consent banner with PHP and JavaScript to delay loading tracking scripts until user consent is obtained, ensuring GDPR compliance.
Why Composer Should Never Be in Your Public Directory
Avoid placing Composer in your public directory to prevent security risks. Use server configurations in NGINX and Apache to protect sensitive files and enhance security.