Tagged articles

PHP

3032 articles · Page 25 of 31
php Courses
php Courses
Feb 20, 2021 · Backend Development

Common ThinkPHP Single‑Letter Methods Overview

This article lists the common single‑letter shortcut methods in ThinkPHP, such as A for quickly instantiating the Action library, B for executing actions, C for configuring parameters, and others, providing brief English descriptions for each shortcut.

PHPThinkPHPbackend
0 likes · 2 min read
Common ThinkPHP Single‑Letter Methods Overview
php Courses
php Courses
Feb 19, 2021 · Backend Development

Resolving CORS withCredentials Issues in ThinkPHP 5.1

This guide explains how to resolve CORS withCredentials errors in ThinkPHP 5.1 by configuring Axios on the frontend, setting appropriate Access‑Control headers on the backend, creating a CrossDomain middleware, and handling preflight OPTIONS requests for methods like DELETE and PUT.

CORSMiddlewarePHP
0 likes · 6 min read
Resolving CORS withCredentials Issues in ThinkPHP 5.1
php Courses
php Courses
Feb 19, 2021 · Backend Development

Installing and Using Custom Chinese Validation Messages in Laravel

This guide explains how to install the Laravel validation package, create a Chinese language file for validation messages, wrap the validator in a custom handler class, and demonstrate direct validation, custom messages, attribute names, and error printing with practical code examples.

PHPValidationbackend
0 likes · 6 min read
Installing and Using Custom Chinese Validation Messages in Laravel
php Courses
php Courses
Feb 18, 2021 · Backend Development

Laravel Routing Basics and Advanced Usage

This article explains Laravel's routing system, covering the default route file, basic GET routes, common HTTP methods, parameter constraints, multiple parameters, and how to bind routes to controller actions with practical code examples.

PHPRoutingWeb Development
0 likes · 5 min read
Laravel Routing Basics and Advanced Usage
Laravel Tech Community
Laravel Tech Community
Feb 17, 2021 · Backend Development

mt_rand() – Generating Better Random Numbers in PHP

The article explains PHP's mt_rand() function, which provides a faster and more reliable random number generator than the older rand(), details its optional min and max parameters, return range, and includes sample code demonstrating usage and typical output.

PHPbackendmt_rand
0 likes · 2 min read
mt_rand() – Generating Better Random Numbers in PHP
php Courses
php Courses
Feb 9, 2021 · Backend Development

Creating a Custom ThinkPHP Command Line Script (hello)

This tutorial explains how to create a custom ThinkPHP command line script by adding a hello.php class in the application/command directory, configuring its name, description, and help, registering it in application/command.php, and executing it with the 'php think hello' command to output 'hello world'.

Command LinePHPThinkPHP
0 likes · 2 min read
Creating a Custom ThinkPHP Command Line Script (hello)
php Courses
php Courses
Feb 8, 2021 · Backend Development

Laravel Like Comment: Installation and Usage Guide

This article introduces the Laravel‑like‑comment package, outlines its features, and provides step‑by‑step instructions—including Composer installation, service provider registration, asset publishing, database migration, CSS/JS inclusion, user model configuration, and Blade directives for adding likes and comments—to integrate a full‑featured AJAX comment system into a Laravel application.

AJAXBladeInstallation
0 likes · 5 min read
Laravel Like Comment: Installation and Usage Guide
php Courses
php Courses
Feb 7, 2021 · Backend Development

How to Efficiently Retrieve Random Rows from MySQL in Laravel

This guide explains three Laravel techniques—native SQL with ORDER BY RAND(), raw expressions, and the inRandomOrder method—to efficiently retrieve a random set of rows from a MySQL database for tasks such as assigning orders or sampling users.

PHPRandom Datalaravel
0 likes · 3 min read
How to Efficiently Retrieve Random Rows from MySQL in Laravel
php Courses
php Courses
Feb 7, 2021 · Information Security

Scanning Files for Viruses with ClamAV and PHP on Linux

This guide explains how to configure ClamAV on Linux, run the clamdscan command to detect malicious files, and invoke the scanner from PHP using the exec function, including sample configuration and output details.

ClamAVPHPVirus scanning
0 likes · 2 min read
Scanning Files for Viruses with ClamAV and PHP on Linux
php Courses
php Courses
Feb 7, 2021 · Backend Development

Configuring IP Access Restrictions for Modules in ThinkPHP

This guide explains how to configure module IP access restrictions in ThinkPHP by adding 'allow_module_ip' and 'deny_module_list' entries to config.php, shows the recommended placement, and demonstrates the necessary modifications to the framework's App.php file to enforce the rules.

IP restrictionPHPSecurity
0 likes · 3 min read
Configuring IP Access Restrictions for Modules in ThinkPHP
Laravel Tech Community
Laravel Tech Community
Feb 5, 2021 · Backend Development

Using PHP’s max() Function to Find the Largest Value

This article explains how PHP’s max() function works with both scalar values and arrays, describes its parameters and return value, and provides multiple code examples demonstrating how to retrieve the greatest element in various scenarios.

ArrayComparisonPHP
0 likes · 3 min read
Using PHP’s max() Function to Find the Largest Value
php Courses
php Courses
Feb 5, 2021 · Backend Development

Implementing Role-Based Access Control (RBAC) with the Auth Class in ThinkPHP

This guide explains how to set up an Auth class in ThinkPHP, create the necessary database tables for groups and rules, design admin and permission tables, configure user‑group relationships, handle login sessions, and integrate the Auth class into a common controller to enforce RBAC checks.

AuthenticationPHPRBAC
0 likes · 4 min read
Implementing Role-Based Access Control (RBAC) with the Auth Class in ThinkPHP
php Courses
php Courses
Feb 5, 2021 · Backend Development

Essential Laravel Development Tips and Best Practices

This article presents a concise set of Laravel best‑practice recommendations—including environment configuration, avoiding core modifications, using migrations, seeding, Artisan commands, proper naming, validation requests, Carbon for dates, staying up‑to‑date, and asset compilation—to help PHP developers write clean, maintainable backend code.

ArtisanEnvPHP
0 likes · 4 min read
Essential Laravel Development Tips and Best Practices
Laravel Tech Community
Laravel Tech Community
Feb 4, 2021 · Backend Development

PHP log() Function: Natural Logarithm with Optional Base

The PHP log() function computes the natural logarithm of a number or, when a base is supplied, the logarithm with that base, and the article explains its signature, parameters, return value, and provides example code with expected output.

MathematicsPHPbackend
0 likes · 2 min read
PHP log() Function: Natural Logarithm with Optional Base
php Courses
php Courses
Feb 4, 2021 · Information Security

Analyzing and Decoding CAPTCHA Images Using PHP

This article explains how to extract RGB values from a CAPTCHA image with PHP, convert the pixel data into binary patterns, map those patterns to digits using a predefined dictionary, and achieve 100% recognition accuracy, illustrating a practical backend security technique.

OCRPHPSecurity
0 likes · 4 min read
Analyzing and Decoding CAPTCHA Images Using PHP
Laravel Tech Community
Laravel Tech Community
Feb 3, 2021 · Backend Development

PHP Composer ID Validator: Features, Installation, Usage, and Information Retrieval

This article introduces the PHP Composer package "jxlwqq/id-validator", detailing its capabilities to validate Chinese resident ID numbers, upgrade 15‑digit IDs to 18‑digit, generate synthetic IDs, retrieve detailed personal information, and explains installation, usage examples, and the structure of the returned data.

PHPValidationbackend
0 likes · 3 min read
PHP Composer ID Validator: Features, Installation, Usage, and Information Retrieval
php Courses
php Courses
Feb 3, 2021 · Backend Development

Getting Started with Hyperf: Installation, Configuration, and Running the Swoole‑Based PHP Coroutine Framework

This guide introduces Hyperf, a high‑performance PHP coroutine framework built on Swoole, explains its CLI vs PHP‑FPM modes, lists required system extensions, shows how to configure Composer mirrors, install the skeleton, disable Swoole short names, start the server, and resolve common port‑conflict issues.

CLIDockerHyperf
0 likes · 5 min read
Getting Started with Hyperf: Installation, Configuration, and Running the Swoole‑Based PHP Coroutine Framework
php Courses
php Courses
Feb 3, 2021 · Backend Development

Handling Form Submissions in ThinkPHP: POST vs GET and Using the I Method

This article explains how to handle form submissions in ThinkPHP by distinguishing POST and GET requests, using built‑in constants to detect request types, and employing the I method for secure data retrieval, illustrated with a complete add() controller example.

Form HandlingPHPPOST
0 likes · 4 min read
Handling Form Submissions in ThinkPHP: POST vs GET and Using the I Method
php Courses
php Courses
Feb 3, 2021 · Backend Development

Practical Refactoring Tips for Cleaner PHP Code

This article presents practical refactoring techniques for PHP developers, emphasizing unit testing, bottom‑up restructuring, eliminating magic numbers, using braces, meaningful naming, and leveraging language features, illustrated with real‑world hotel management code examples and concise best‑practice tips.

PHPRefactoringbest practices
0 likes · 9 min read
Practical Refactoring Tips for Cleaner PHP Code
Laravel Tech Community
Laravel Tech Community
Feb 2, 2021 · Backend Development

PHP log10() Function – Base‑10 Logarithm

The PHP log10() function returns the base‑10 logarithm of a floating‑point argument, detailing its signature, parameter description, return value, and providing example code with expected output for various inputs.

FunctionMathematicsPHP
0 likes · 1 min read
PHP log10() Function – Base‑10 Logarithm
Laravel Tech Community
Laravel Tech Community
Jan 30, 2021 · Backend Development

PHP is_infinite() Function – Determine if a Value Is Infinite

The article explains PHP’s is_infinite() function, describing its purpose of detecting infinite floating‑point values, detailing its single parameter, return values, and providing example code that demonstrates true and false outcomes, with the expected output shown.

FunctionPHPbackend
0 likes · 2 min read
PHP is_infinite() Function – Determine if a Value Is Infinite
php Courses
php Courses
Jan 29, 2021 · Backend Development

Deep Dive into ThinkPHP Cache Mechanism: Setting, Retrieval, and Source Code Analysis

This article provides a comprehensive analysis of ThinkPHP’s cache system, detailing the execution flow for setting and retrieving cache, exploring the underlying source code, illustrating static method behavior, initialization, file handling, compression techniques, and practical examples with code snippets.

CachePHPThinkPHP
0 likes · 11 min read
Deep Dive into ThinkPHP Cache Mechanism: Setting, Retrieval, and Source Code Analysis
php Courses
php Courses
Jan 29, 2021 · Backend Development

Handling Cookies and File Uploads in Laravel

This article explains how Laravel encrypts and signs cookies to prevent tampering, shows multiple ways to set and retrieve cookie values, and provides detailed instructions and code examples for uploading, validating, and storing files using the framework's request and response utilities.

PHPbackendcookies
0 likes · 5 min read
Handling Cookies and File Uploads in Laravel
Laravel Tech Community
Laravel Tech Community
Jan 26, 2021 · Backend Development

hexdec() – Convert Hexadecimal Strings to Decimal in PHP

hexdec() is a PHP built‑in function that converts a hexadecimal string to its decimal value, ignoring any non‑hex characters, and returns the corresponding integer; the article explains its syntax, parameters, return value, and provides example code demonstrating conversions such as "See" and "a0".

ConversionPHPbackend
0 likes · 2 min read
hexdec() – Convert Hexadecimal Strings to Decimal in PHP
php Courses
php Courses
Jan 26, 2021 · Backend Development

Understanding the ThinkPHP Db Class: Workflow and Core Methods

This article provides a detailed walkthrough of the ThinkPHP Db class, explaining its relationship with other core classes, the database configuration, and the step‑by‑step execution flow of queries, including magic methods, connection handling, and result retrieval.

DBDatabaseORM
0 likes · 8 min read
Understanding the ThinkPHP Db Class: Workflow and Core Methods
php Courses
php Courses
Jan 26, 2021 · Backend Development

Reading and Writing CSV Files in PHP

This article provides PHP code examples for reading data from a CSV file and writing data to a new CSV file, including handling of locale settings, skipping headers, constructing headers, and appending rows using built‑in functions such as fgetcsv, fopen, and fwrite.

CSVData ProcessingFile I/O
0 likes · 2 min read
Reading and Writing CSV Files in PHP
php Courses
php Courses
Jan 25, 2021 · Backend Development

Deep Dive into ThinkPHP Model Implementation and Save Method Execution

This article provides a comprehensive, step‑by‑step analysis of ThinkPHP's Model class, illustrating how the framework organizes model files, utilizes traits and ArrayAccess, and executes the save method—including data validation, insert/update logic, and the underlying execute routine that interacts with the database via PDO.

DatabaseModelORM
0 likes · 9 min read
Deep Dive into ThinkPHP Model Implementation and Save Method Execution
php Courses
php Courses
Jan 22, 2021 · Backend Development

Laravel Eloquent Model Tips: Selecting Attributes, Cloning, Comparing, Refreshing, Updating Relations, Soft Deletes, and Change Detection

This article presents a collection of practical Laravel Eloquent model techniques, including selecting specific attributes with find, cloning models via replicate, comparing models with is, refreshing and reloading records, updating related models with push, customizing soft‑delete columns, and detecting attribute changes using getChanges, getDirty, and getOriginal.

DatabaseEloquentModel
0 likes · 5 min read
Laravel Eloquent Model Tips: Selecting Attributes, Cloning, Comparing, Refreshing, Updating Relations, Soft Deletes, and Change Detection
php Courses
php Courses
Jan 21, 2021 · Backend Development

Handling HTTP Requests and Input Retrieval in Laravel

This article explains how Laravel simplifies accessing request data by using the Illuminate\Http\Request instance, automatic controller injection, and various helper methods to obtain request methods, URLs, and input values, including full, partial, and boolean inputs.

HTTP requestInput HandlingPHP
0 likes · 5 min read
Handling HTTP Requests and Input Retrieval in Laravel
Laravel Tech Community
Laravel Tech Community
Jan 20, 2021 · Backend Development

deg2rad() – Convert Degrees to Radians in PHP

The article explains PHP’s deg2rad() function, detailing its signature, parameter, return value, and provides example code that demonstrates converting 45 degrees to radians and verifying the result against the constant M_PI_4 in PHP.

ConversionPHPbackend
0 likes · 1 min read
deg2rad() – Convert Degrees to Radians in PHP
Laravel Tech Community
Laravel Tech Community
Jan 19, 2021 · Backend Development

PHP decoct Function – Convert Decimal to Octal

This article explains the PHP decoct function, which returns the octal representation of a given decimal integer, details its parameter and return value, and provides example code demonstrating conversions such as 15 → 17 and 264 → 410.

ConversionPHPbackend
0 likes · 2 min read
PHP decoct Function – Convert Decimal to Octal
Laravel Tech Community
Laravel Tech Community
Jan 17, 2021 · Backend Development

decbin() – Convert Decimal to Binary in PHP

The article explains PHP’s decbin() function, detailing its purpose of converting a decimal integer (0‑4294967295) to a 32‑bit binary string, describing its parameter and return value, and providing a complete code example with expected output.

PHPbackendbinary conversion
0 likes · 1 min read
decbin() – Convert Decimal to Binary in PHP
Laravel Tech Community
Laravel Tech Community
Jan 14, 2021 · Backend Development

PHP ceil() Function: Rounding Up to the Next Integer

This article explains PHP’s ceil() function, describing how it rounds a floating‑point number up to the smallest integer not less than the given value, details its parameter and return type, and provides example code with expected outputs.

PHPRoundingbackend
0 likes · 2 min read
PHP ceil() Function: Rounding Up to the Next Integer
Laravel Tech Community
Laravel Tech Community
Jan 11, 2021 · Backend Development

PHP atanh() Function – Inverse Hyperbolic Tangent

The article explains PHP’s atanh() function, which computes the inverse hyperbolic tangent of a float argument, detailing its signature, parameter, return value, and providing sample code with expected outputs for various inputs.

PHPatanhbackend
0 likes · 1 min read
PHP atanh() Function – Inverse Hyperbolic Tangent
Laravel Tech Community
Laravel Tech Community
Jan 10, 2021 · Backend Development

Understanding PHP’s atan() Function: Usage, Parameters, and Examples

This article explains PHP’s atan() function, detailing its signature, parameter description, return value in radians, and provides multiple code examples demonstrating how different inputs produce corresponding inverse tangent results, including positive, negative, and large magnitude numbers, along with the exact numeric outputs.

PHPatanbackend development
0 likes · 2 min read
Understanding PHP’s atan() Function: Usage, Parameters, and Examples
Laravel Tech Community
Laravel Tech Community
Jan 9, 2021 · Backend Development

Master PHP’s atan2() Function: Compute Angles with Two Arguments

This article explains PHP’s atan2() function, detailing its signature, parameter meanings, return value, and provides multiple code examples that demonstrate how different x‑and y‑coordinate pairs produce specific radian results, helping developers correctly compute angles in backend applications.

PHPatan2backend
0 likes · 2 min read
Master PHP’s atan2() Function: Compute Angles with Two Arguments
Laravel Tech Community
Laravel Tech Community
Jan 6, 2021 · Backend Development

PHP acosh() Function – Inverse Hyperbolic Cosine

This article explains the PHP acosh() function, describing its purpose, parameter and return value, and provides example code demonstrating how to compute the inverse hyperbolic cosine of various numbers with the resulting outputs.

PHPacoshbackend
0 likes · 1 min read
PHP acosh() Function – Inverse Hyperbolic Cosine
Beike Product & Technology
Beike Product & Technology
Jan 6, 2021 · Backend Development

Optimizing Apollo Configuration Reading in PHP: Reducing CPU and Memory Overhead

This article analyzes the performance bottleneck caused by large Apollo configuration reads in a PHP application and presents multiple optimization strategies—including static variables, Yac/APCu caching, require‑file with opcache, and MessagePack serialization—to significantly lower CPU and memory consumption while maintaining configuration freshness.

ApolloMessagePackPHP
0 likes · 11 min read
Optimizing Apollo Configuration Reading in PHP: Reducing CPU and Memory Overhead
Laravel Tech Community
Laravel Tech Community
Jan 5, 2021 · Backend Development

PHP acos() Function – Inverse Cosine (Radians)

The PHP acos() function returns the arccosine of a given float argument in radians, detailing its signature, parameter description, return value, and providing example code with expected outputs for various inputs.

PHPacosbackend
0 likes · 1 min read
PHP acos() Function – Inverse Cosine (Radians)
Laravel Tech Community
Laravel Tech Community
Jan 4, 2021 · Backend Development

Laravel Excel Export with Merged Cells and Custom Column Formatting

This article demonstrates how to create a Laravel export class using Maatwebsite\Excel that supports merging cells, custom column formatting, and handling large numeric values, providing a complete PHP implementation with constructor, collection, event registration, and column format methods for generating Excel files.

ExcelExportFormatting
0 likes · 3 min read
Laravel Excel Export with Merged Cells and Custom Column Formatting
21CTO
21CTO
Jan 1, 2021 · Backend Development

Python vs PHP for Web Development: Which Language Wins?

An in‑depth comparison of Python and PHP evaluates performance, complexity, flexibility, security, frameworks, and community support, helping developers decide which language better suits their web development projects based on project requirements, scalability, and ecosystem strengths.

PHPPythonbackend
0 likes · 8 min read
Python vs PHP for Web Development: Which Language Wins?
Laravel Tech Community
Laravel Tech Community
Dec 30, 2020 · Backend Development

PHP sort() Function – Sorting Arrays

This article explains the PHP sort() function, its signature, optional sorting flags, parameters, return values, and provides a complete example demonstrating how to sort an array of strings in ascending order and display the sorted results.

ArrayPHPbackend
0 likes · 2 min read
PHP sort() Function – Sorting Arrays
Laravel Tech Community
Laravel Tech Community
Dec 29, 2020 · Backend Development

PHP shuffle() Function – Randomly Shuffle an Array

This article explains the PHP shuffle() function, describing its purpose of randomly reordering array elements, the required array parameter, the boolean return value, and provides a complete example with sample output to illustrate its usage.

ArrayPHPShuffle
0 likes · 2 min read
PHP shuffle() Function – Randomly Shuffle an Array
Laravel Tech Community
Laravel Tech Community
Dec 25, 2020 · Backend Development

PHP prev() Function: Move an Array’s Internal Pointer Backward

The PHP prev() function moves an array’s internal pointer one step backward, returning the previous element’s value or FALSE when no more elements exist, and is demonstrated with a complete example showing how to iterate and retrieve values using prev, next, and current.

ArrayFunctionPHP
0 likes · 2 min read
PHP prev() Function: Move an Array’s Internal Pointer Backward
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Dec 25, 2020 · Backend Development

Implementing Message Queues with Redis: Lists, Zsets, Pub/Sub, and Streams

This article explains how Redis can be used to build lightweight, high‑performance message queues by leveraging lists for simple queues, sorted sets for delayed delivery, Pub/Sub for multicast, and the Stream data structure for durable, scalable messaging, while also covering practical PHP implementations, acknowledgment, retry, graceful restart, and rate‑limiting techniques.

Message QueuePHPRedis
0 likes · 19 min read
Implementing Message Queues with Redis: Lists, Zsets, Pub/Sub, and Streams
Liangxu Linux
Liangxu Linux
Dec 24, 2020 · Cloud Native

How to Set Up Multi-Branch CI/CD with Docker, GitLab, and Jenkins for PHP Projects

This guide explains how to avoid code‑conflict and testing interference in large PHP projects by creating independent deployment branches using Docker, GitLab, and Jenkins, detailing the required tools, installation steps, container configuration, GitLab project setup, Jenkins job creation, and webhook integration.

CI/CDDockerGitLab
0 likes · 8 min read
How to Set Up Multi-Branch CI/CD with Docker, GitLab, and Jenkins for PHP Projects
Laravel Tech Community
Laravel Tech Community
Dec 24, 2020 · Backend Development

PHP next() Function: Advancing the Internal Array Pointer

The PHP next() function moves an array's internal pointer forward by one position, returning the value of the next element or FALSE when no more elements exist, and is demonstrated with sample code showing how to retrieve successive items from an array.

ArrayPHP__next__
0 likes · 2 min read
PHP next() Function: Advancing the Internal Array Pointer
Laravel Tech Community
Laravel Tech Community
Dec 23, 2020 · Backend Development

Using PHP's natsort() Function for Natural Order Array Sorting

This article explains PHP's natsort() function, which performs natural order sorting on arrays while preserving key/value associations, describes its parameters and return values, and provides a complete example comparing standard sorting with natural sorting to illustrate the differences in output.

ArrayPHPbackend
0 likes · 2 min read
Using PHP's natsort() Function for Natural Order Array Sorting
Laravel Tech Community
Laravel Tech Community
Dec 21, 2020 · Backend Development

Using list() to Assign Array Values to Variables in PHP

This article explains the PHP list() language construct, its syntax and return value, and provides detailed examples showing how to unpack array elements into variables, handle partial assignments, skip elements, and demonstrates that list() cannot operate on strings.

ArrayPHPVariable Assignment
0 likes · 2 min read
Using list() to Assign Array Values to Variables in PHP
Laravel Tech Community
Laravel Tech Community
Dec 20, 2020 · Backend Development

Using ksort() to Sort Arrays by Key in PHP

This article explains the PHP ksort() function, which sorts an associative array by its keys while preserving key‑value relationships, describes its parameters and return values, and provides a complete example with code and expected output.

ArrayPHPbackend
0 likes · 2 min read
Using ksort() to Sort Arrays by Key in PHP
Laravel Tech Community
Laravel Tech Community
Dec 18, 2020 · Backend Development

Using PHP key() to Retrieve Keys from Associative Arrays

This article explains the PHP key() function, its parameters and return values, and demonstrates with a complete example how to iterate over an associative array to output the keys whose values match a specific condition, such as finding all keys for the value "apple".

PHPassociative arraybackend
0 likes · 2 min read
Using PHP key() to Retrieve Keys from Associative Arrays
php Courses
php Courses
Dec 18, 2020 · Backend Development

Common PHP Command‑Line Options and Script Development Guide

This article introduces the most frequently used PHP command‑line switches, explains how to retrieve module, version, configuration and help information, and demonstrates basic CLI script development with $argv and $argc, including a complete example and its output.

CLICommand LinePHP
0 likes · 3 min read
Common PHP Command‑Line Options and Script Development Guide
php Courses
php Courses
Dec 17, 2020 · Backend Development

Customizing ThinkPHP 3.2 Error Page with a Personalized Template

This guide explains how to replace ThinkPHP's default error page by adding configuration entries and creating a custom HTML template, including CSS styling and JavaScript for automatic redirects, providing a more attractive and functional error display.

Error PageHTMLJavaScript
0 likes · 6 min read
Customizing ThinkPHP 3.2 Error Page with a Personalized Template
php Courses
php Courses
Dec 16, 2020 · Backend Development

Using Ajax in Laravel: Controller, View, and Route Setup

This tutorial walks through creating a Laravel controller, view, and route to handle Ajax requests, integrating jQuery on the front end, and displaying the server response, providing a practical example for backend developers to implement asynchronous interactions in a PHP application.

PHPWeb Developmentbackend
0 likes · 5 min read
Using Ajax in Laravel: Controller, View, and Route Setup
php Courses
php Courses
Dec 16, 2020 · Backend Development

Implementing Data Validation with ThinkPHP5's Validate Class

This tutorial demonstrates how to create a ThinkPHP5 validation class, build a simple HTML form, and write a backend controller method to validate input data using scenes, providing step‑by‑step code examples for PHP developers.

ControllerFormPHP
0 likes · 3 min read
Implementing Data Validation with ThinkPHP5's Validate Class
ITPUB
ITPUB
Dec 15, 2020 · Frontend Development

Mastering Large File Uploads in the Browser: Chunking, Resume, and Progress

This article explores the challenges of uploading massive files from the browser, compares traditional form, iframe, FormData, and base64 methods, and provides detailed JavaScript and PHP examples for implementing chunked uploads, resumable transfers, and progress monitoring.

Chunked UploadJavaScriptLarge File Upload
0 likes · 11 min read
Mastering Large File Uploads in the Browser: Chunking, Resume, and Progress
php Courses
php Courses
Dec 14, 2020 · Backend Development

Using Form Method Spoofing and CSRF Protection in Laravel

This article explains how to handle RESTful HTTP methods in Laravel forms by using method spoofing, demonstrates adding CSRF tokens, disabling CSRF protection, configuring whitelist routes, and provides code examples for GET, POST, and PUT requests.

Form SpoofingPHPbackend
0 likes · 5 min read
Using Form Method Spoofing and CSRF Protection in Laravel
php Courses
php Courses
Dec 14, 2020 · Backend Development

Simple API Development Example Using ThinkPHP 6.x

This article presents a step‑by‑step tutorial for PHP beginners on building a simple product‑detail API with ThinkPHP 6.x, covering front‑end HTML form, request‑side controller using cURL, and API controller that queries a database and returns JSON data.

APIPHPThinkPHP
0 likes · 3 min read
Simple API Development Example Using ThinkPHP 6.x
php Courses
php Courses
Dec 11, 2020 · Backend Development

Laravel Performance Optimization Tips

This article presents practical Laravel performance optimization techniques, including selecting only needed fields in queries, using eager loading to reduce database calls, removing unnecessary Composer dependencies, enabling caching, upgrading to the latest PHP version, and leveraging queues for time‑consuming tasks.

OptimizationPHPbackend
0 likes · 4 min read
Laravel Performance Optimization Tips
php Courses
php Courses
Dec 9, 2020 · Backend Development

How to Specify a Custom Table Name for a Laravel Model

This guide explains why Laravel automatically pluralizes model names to table names, the problems it can cause, and how to override the default by adding a protected $table property in the model class to map the model to a custom table name.

Custom TableModelPHP
0 likes · 2 min read
How to Specify a Custom Table Name for a Laravel Model
Laravel Tech Community
Laravel Tech Community
Dec 5, 2020 · Backend Development

Generating Random Numbers in PHP Using shuffle, array_unique, array_flip, and Custom Functions

This article demonstrates multiple PHP techniques for generating unique random numbers, including using shuffle on a range array, applying array_unique with a while loop, leveraging array_flip to remove duplicates, and creating a customizable randpw function with mt_rand, complete with code examples and output results.

PHParray-functionsbackend
0 likes · 4 min read
Generating Random Numbers in PHP Using shuffle, array_unique, array_flip, and Custom Functions
php Courses
php Courses
Dec 4, 2020 · Backend Development

Quickly Locate Source Files and Hide Methods in PhpStorm for Efficient Screenshotting

This article explains how to configure PhpStorm to automatically locate the source file of the currently edited code and hide its method list, walking through two solutions—including using the navigation circle feature and disabling method display in settings—to improve workflow efficiency for developers.

IDE TipsPHPSource Navigation
0 likes · 4 min read
Quickly Locate Source Files and Hide Methods in PhpStorm for Efficient Screenshotting
php Courses
php Courses
Dec 3, 2020 · Backend Development

Understanding TP5.1 Framework and PHP OpCache Caching Issues

This article explains why changes to PHP code in the TP5.1 framework may require a 30‑second wait before appearing in the browser, revealing that the delay is caused by PHP's OpCache caching mechanism, which must be manually enabled in PHP 5.x but is often enabled by default in PHP 7.x, and provides guidance on diagnosing and resolving the issue.

OPcachePHPTP5.1
0 likes · 1 min read
Understanding TP5.1 Framework and PHP OpCache Caching Issues
php Courses
php Courses
Dec 2, 2020 · Backend Development

Implementing SMS Verification with ThinkPHP and Yunpian API

This tutorial explains how to build an SMS verification feature in a ThinkPHP application by generating codes, storing them, sending them via Yunpian's API, and validating user input, including required API parameters and controller method implementations.

APIPHPSMS verification
0 likes · 2 min read
Implementing SMS Verification with ThinkPHP and Yunpian API