Hướng dẫn laravel phpdoc - laravel phpdoc

Hướng dẫn laravel phpdoc - laravel phpdoc

Hướng dẫn create route php

routing system luôn là 1 phần quan trọng của hệ thống code website. Bài này sẽ hướng dẫn bạn tạo router riêng để không phụ thuộc framework. 2021-01-06 4019 lượt ...

Hướng dẫn php recursive function

Is it a method or a function php?Methods are used to perform actions. In Object Oriented Programming in PHP, methods are functions inside classes. Their declaration and behavior are almost similar to ...

Where do we use foreach loop in php?

PHP foreach LoopThe foreach loop - Loops through a block of code for each element in an array.The PHP foreach LoopThe foreach loop works only on arrays, and is used to loop through each key/value ...

Hướng dẫn timestamp in php

Blog Tin tức 26/07/2021 03:01Ngày tháng là một phần của cuộc sống hàng ngày, do vậy việc xử lý ngày tháng cực kỳ quan trọng khi bạn xử lý các bài viết và ...

What is the best way to encrypt password in php?

The best way to encrypt and decrypt passwords is to use a standard library in PHP because the method of properly encrypting and decrypting passwords from scratch is complex and involves multiple ...

Php code to generate random username and password

Last Updated : Apr 15, 2022IN - PHP MySQL HTML Password is always be at the most risk because if your password is not strong then someone can steal your account and access all your details. Your ...

Php function return type array

I am very happy with the new features in PHP 7. But I am confused on how to return an array of objects in PHP 7.For example, we have a class Item, and we want to return an array of objects of this ...

Hướng dẫn php logging

Đây là những hàm xử lý lỗi và xử lý các vấn đề về log trong PHP. Chúng cho phép bạn định nghĩa các qui tắc xử lý lỗi cho riêng bạn, cũng như chỉnh sửa ...

What is autoload in php laravel?

Jan 24, 2021 15:46In this post we will code a custom autoloading solution in Core PHP from scratch and will also take a look at utilizing composer for autoloading in Core PHP.If you have used a ...

Hướng dẫn aws php sdk tutorial

Bắt đầu sử dụng nhanh chóng AWS với AWS SDK cho PHP. SDK là thư viện PHP nguồn mở hiện đại giúp bạn dễ dàng tích hợp ứng dụng PHP với các dịch vụ AWS như ...

Php ssh execute remote command

(PECL ssh2 >= 0.9.0)ssh2_exec — Execute a command on a remote serverDescriptionssh2_exec( resource $session, string ...

Hướng dẫn phpunit

Giới thiệuBiết rằng Unit Test quan trọng và mang lại nhiều lợi ích là thế nhưng việc áp dụng, thực hiện như thế nào cho đúng và hiệu quả là một điều ...

Hướng dẫn dùng no exception trong PHP

Xin chào tất cả các mọi người, bài viết này mình xin trình bày về xử lý lỗi và Exception trong PHP, rất mong được sự theo dõi của mọi người1) Xử lý ...

Why we use try catch in php?

When PHP version 5 was released, it incorporated a built-in model to catch errors and exceptions. Handling errors in PHP with try catch blocks is almost the same as handling errors in other ...

Hướng dẫn php authentication

Lượt truy cập: 1,131Trong bài hướng dẫn này, chúng ta sẽ tìm hiểu và lập trình cơ chế xác thực Basic Authentication dựa trên kiến trúc RESTful Web Services, trong ...

Hướng dẫn realtime php

Mình đang trong giai đoạn làm ứng dụng quản lý bán hàng cho bên mình và trong đó có một số chức năng cần realtime. Lúc đầu mình dùng ajax và request dữ liệu ...

Hướng dẫn php artisan make:model

1. Tạo ModelĐể tạo model ta mở command line và gõ lệnh sau:php artisan make:model NewsHoặc php arisan make:model News --migrationTrong đó:News là tên model, các bạn có ...

Hướng dẫn format number php money

(PHP 4 >= 4.3.0, PHP 5, PHP 7)money_format — Formats a number as a currency stringWarningThis function has been DEPRECATED as of PHP 7.4.0, and REMOVED as of PHP 8.0.0. Relying on this function ...

Can php send asynchronous request?

Event ExtensionEvent extension is very appropriate. It is a port of Libevent library which is designed for event-driven I/O, mainly for networking.I have written a sample HTTP client that allows to ...

Hướng dẫn callback function in php

Bài viết được sự cho phép của tác giả Kien Dang ChungCallback là khái niệm một hàm được truyền vào một hàm khác như một tham số để nó có thể được ...

Hướng dẫn phpcs options

PHP_CodeSniffer (PHPCS) is a tool that validates your code against a set of predefined standards and ensures that such standards are maintained across the team. This tutorial will walk you through ...

Hướng dẫn dùng pp page trong PHP

Vietnamese (Tiếng Việt) translation by Dai Phong (you can also view the original English article) Tôi có thể nhớ những năm trước đây khi lần đầu tiên tôi bắt đầu viết ...

Hướng dẫn mysql_real_escape_string in laravel

Python log10 math domain errorI have to use Python math.log(x) function with values of x from (0, ..., 1). Sometimes x may be too close to zero, and Python gives me an error:ValueError: math domain ...

Hướng dẫn mongodb php tutorial

Nội dung chínhMongoDB được tối ưu hóa cho CRUD Tạo hoặc chọn một bộ sưu tập Tạo một tài liệu trong một bộ sưu tập Không đồng bộ và đồng bộ Khóa ...

Hướng dẫn dùng the manual trong PHP

An array in PHP is actually an ordered map. A map is a type that associates values to keys. This type is optimized for several different uses; it can be treated as an array, list (vector), hash table ...

Hướng dẫn append in php

Mục lục nội dungNội dung chính2. Append file trong PHP2. Xóa file trong PHPPHP Nối vào file – fwrite()Understanding the file_put_contents() FunctionUsing file_put_contents() to ...

Hướng dẫn dùng the closure trong PHP

Trong quá trình làm quen với các framework PHP như Laravel, Symfony... chúng ta rất hay gặp các khái niệm Lambda, Closure, chúng đều là những tính năng mới cho phép tái ...

Hướng dẫn php loop input array

Okay, I need some help here. I have a form where the user can add/remove some input fields. Those fields live in modals that are dynamically built using jQuery. This is my basic setup:

Viết chức năng bình luận trong php

1. Backend – nội dung 1 file comments.php2. Vận hành comments.php một cách an toànKiểm tra quyền truy cập comments.phpBạn yêu cầu một mật khẩu truy cập ?3. Hiện các ...

Hướng dẫn var_dump array php

(PHP 4, PHP 5, PHP 7, PHP 8)var_dump — Dumps information about a variableDescriptionvar_dump(mixed $value, mixed ...$values): void This function displays structured information about one or more ...

Hướng dẫn dùng to php trong PHP

Trang chủHướng dẫn họcHọc PHPPHP - function thường dùngPHP - function thường dùngbreak - Dùng để kết thúc vòng lặp (for, foreach, while, do-while) hoặc câu lệnh ...

Laravel jetstream là gì

Chào mọi người, do mọi người rất ủng hộ với series học laravel của mình mà bản đó thì mình viết từ version 5.3 đến giờ thì laravel cũng đã update rất ...

How you can handle multiple exceptions in php?

Exceptions are used to change the normal flow of a script if a specified error occurs.What is an ExceptionWith PHP 5 came a new object oriented way of dealing with errors.Exception handling is used ...

Hướng dẫn dùng file_get trong PHP

- Hàm file_get_contents() dùng để lấy nội dung của một tập tin.- Cú pháp:file_get_contents(đường dẫn đến tập tin mà bạn muốn lấy nội dung)- Tôi có một tập ...

Php simple html dom parser laravel

READMEVersion 1.5.2Adaptation for Composer and PSR-0 of:A HTML DOM parser written in PHP5+ let you manipulate HTML in a very easy way! Require PHP 5+. Supports invalid HTML. Find tags on an HTML page ...

Hướng dẫn dùng id http trong PHP

Cấu trúc URLTrong gói tin HTTP Request, dòng Request Line bạn phải cung cấp một URL, thường là thông qua thanh địa chỉ của trình duyệt.URL là viết tắt của Uniform ...

How to install php imap

View DiscussionImprove ArticleSave ArticleReadDiscussView DiscussionImprove ArticleSave ArticleIMAP stands for Internet Message Access Protocol. It is an application layer protocol. PHP-IMAP is used ...