Picture deletion for laravel-admin

There is a deep doubt about laravel-admin's picture upload mechanism. Deleting avatar pictures on the user information page will cause an error. It was 1.4 at that time, and later updated 1.5 found that the delete button disappeared directly. If you use image normally in the form during the process of use, the slight ...

Posted by Lustre on Sat, 18 Jul 2020 16:38:30 +0200

Sharing meta model of PHP design pattern

The word "Xiang Yuan" has no special meaning in Chinese, so we should divide it into two parts. "Sharing" means sharing, and "Yuan" is elements. In this way, it seems easy to understand that sharing certain elements. Gof class diagram and its explanation GoF definition: u ...

Posted by ludachris on Tue, 30 Jun 2020 04:12:16 +0200

The responsibility chain pattern of PHP design pattern

The model of responsibility chain belongs to the design model of object behavior. Gof class diagram and explanation GoF definition: allows multiple objects to process requests, thus avoiding the coupling between the sender and receiver of the request. Link these objects into a chain and pass the reque ...

Posted by asa_carter on Sun, 28 Jun 2020 03:57:15 +0200

Released by Dcat Admin v1.5.0, it is a high value background system building tool, adding cool dark mode theme

Dcat Admin Dcat Admin Is based on laravel-admin The second development of the background system construction tool, only a small amount of code can quickly build a functional high value background system. Built in rich back-end common components, out of the box, let developers bid farewell to miscellaneous HTML code, very friendly to back-end de ...

Posted by misty on Mon, 15 Jun 2020 06:27:10 +0200

Laravel - hands on Implementation - add, delete, modify and query

Get a framework, in addition to understanding the framework, but also to achieve the basic CURD operation. Add to 1. Configure route, specify add page; // Add the following in routes/web.php: // Add page and storage path Laravel7/resources/views/Users/add.blade.php // The view file ends with. blade.php by default Route::get('/add', function(){ ...

Posted by jvanv8 on Thu, 23 Apr 2020 06:06:46 +0200

Open Swoole without three party package for Laravel

Swoole It is an excellent PHP extension, which can realize the resident service and asynchrony that native PHP is difficult to achieve. Just in time, I had a project on Laravel that I could toss about, so I studied it. Laravel project is based on composer, so I post the require declaration in my composer.json:   { "require": { "ph ...

Posted by SsirhC on Mon, 13 Apr 2020 10:47:38 +0200

PHP implementation of RabbitMQ message queue

First, install RabbitMQ corresponding to PHP. Here we use PHP ﹣ AMQP to implement different extension methods with slight differences php extension address: http://pecl.php.net/package/amqp The details are subject to the official website http://www.rabbitmq.com/getstarted.html introduce config.php configuration information BaseMQ.php MQ base ...

Posted by poseidix on Tue, 17 Mar 2020 16:17:27 +0100

laravel code focus

1. To create a project through composer: composer create-project --prefer-dist laravel/laravel laravel 2. Enter project: cd /var/www/html/laravel 3. To create a controller: php artisan make:controller StudentController 4. Create model classes and data migration files: php artisan make:model Student ...

Posted by ibanez270dx on Thu, 20 Feb 2020 04:54:06 +0100

Laravel elastic search full text search settings

1. First install the jave environment jdk Download address I use the latest version. Sometimes the version corresponds to elastic search 2. Install elastic search Download address 3. Install the Laravel scout full-text search package. Here I use version 5.0.3, Tamayo / Laravel scout elastic. The version here is very important, otherwise I will ...

Posted by finger on Sun, 08 Dec 2019 01:19:10 +0100

php uses lua+redis current limiting, counter mode, token bucket mode

lua advantagesReduce network overhead: code without Lua needs to send multiple requests to Redis, while script only needs one time to reduce network transmission;Atomic operation: Redis executes the entire script as an atom without worrying about concurrency or transaction;Reuse: the script will be permanently saved in Redis, and other clients ...

Posted by MattG on Sat, 07 Dec 2019 19:42:14 +0100