Google authenticator, in combination with two-step authentication, can provide you with a second level of security when you log in to your Google account. After enabling two-step authentication, you need to provide a password and the authentication code generated by this app when you log in to your a ...
Posted on Fri, 12 Jun 2020 05:25:07 -0400 by gabeanderson
Almost all service container binding is done in the service provider.The directory structure is as follows
Note: if a class is not based on any interface, it is not necessary to bind it to a container. The container doesn't need to be told how to build objects, because it automatically parses specific objects using PHP's reflectio ...
Posted on Thu, 11 Jun 2020 03:57:21 -0400 by ram4nd
Original link: https://xueyuanjun.com/post/5805
The Laravel service container is a powerful tool for managing class dependencies and performing dependency injection. The essence of dependency injection is to inject the class dependency into the class through the constructor or i ...
Posted on Wed, 10 Jun 2020 22:44:21 -0400 by datafan
if(($sock = socket_create(AF_INET, SOCK_STREAM, 0)) < 0)
echo "failed to create socket: ".socket_strerror($sock)."n";
if(($ret = socket_bind($sock,'127.0.0.1', 8888)) < 0)
echo "failed to bind socket: ".socket_strerror($ret)."n";
if( ( $ret = socket_listen( ...
Posted on Thu, 28 May 2020 10:07:18 -0400 by jay7981
Installation and verification of JWT Auth in laravel
1. Use composer to install jwt, cmd to the project folder;
Composer require tymon / JWT auth 1.0. * (here the version number is written according to your own needs)
Install jwt, refer to official documentation https://jwt-auth.readthedocs.io/en/docs/laravel-installation/
2. If the laravel v ...
Posted on Thu, 28 May 2020 08:48:45 -0400 by bacarudaguy
The input field mark introduced by PHP form element < input >
Input field flag < input >
The input field tag < input > is one of the most commonly used tags in forms. Common input field markers < input > include text box, button, radio button, check box, etc.
type attribute values and examples and descriptions:
Posted on Fri, 22 May 2020 00:53:02 -0400 by farsighted
1) Queue is a first in first out (FIFO) linear table. It only allows deletion at the front end of the table and insertion at the back end of the table. The end of the insertion is called the end of the queue, and the end of the deletion is called the head of the queue. That is to say, the team can only enter from the end of the team, ...
Posted on Tue, 19 May 2020 04:14:52 -0400 by mgmoses
In the past, the project asked me to add a third party to log in. In order to avoid trouble, I will fill in the main steps this time. Here I use oauth2.0 of the official website, But just now I looked at the Internet. Yesterday on the official website, I said that it seems that the path of using url spell will be stopped, but I still published ...
Posted on Tue, 05 May 2020 09:14:59 -0400 by Shaun13
Laravel Valet is a minimalist development environment for Mac OS X, but its configuration is different from that of traditional HTTP servers (Apache, Nginx, etc.), which is different from rewriting URL in configuration file. Valet defines URL processing in a modular way in PHP class. Because of the different default directory structures of Flar ...
Posted on Wed, 29 Apr 2020 01:57:27 -0400 by RosieisSweet
At present, the version of Homestead virtual machine I installed is 2.1.8:
The PHP version pre installed on this version of Homestead is 5.6.15:
We use the ab command (the performance testing tool provided by Apache) to test the performance of the Laravel application in this version (take the blog application developed with Laravel as an exa ...
Posted on Fri, 24 Apr 2020 03:59:17 -0400 by Elusid