Using the UUID tutorial gracefully in Laravel 7

Recently, I had to implement universal unique identifiers (UUIDs) in Laravel 7, and encountered some problems. I hope this post can help other people who are doing the same thing. Advanced reasons for using UUIDs A) They remove the ID number from your uniform resource locator, so users can't see how many specific objects your app has created. F ...

Posted by heals1ic on Tue, 26 May 2020 09:14:59 -0700

php get form data

php form embed php code in Web page 1. Add PHP script to HTML tag   In the process of Web coding, PHP is an embedded language that can be mixed with HTML. You can add PHP script tag <? PHP...? > to HTML at any time. All the text between the two tags will be interpreted as PHP, and any text outside the tag will be considered as ordinary HT ...

Posted by sell-traffic on Sun, 24 May 2020 18:54:52 -0700

laravel5 route changed to rule matching

laravel has many projects in use, but routing configuration is an indispensable work. In many cases, routing configuration not only increases the repetitive work, but also increases the code overhead. When the project reaches a certain level, the number of routing configurations will be amazing. In many cases, we have to think that although th ...

Posted by ben2468 on Mon, 11 May 2020 00:57:47 -0700

Use hasMany of Laravel Eloquent to develop infinite classification

In the online shopping mall, we can often see multi-level classification, sub classification and even unlimited classification. This article will show you how to implement it gracefully through Laravel Eloquent.   We will create a micro project to show the classification of children's shops, with 5 levels in total, as follows: Database migrati ...

Posted by nitram on Mon, 11 May 2020 00:03:54 -0700

Using Laravel to integrate JWT certification to develop RestfulApi

API is a good choice when using cross platform applications. In addition to the website, your product may also have Android and iOS applications. In this case, the API is just as good because you can write different front ends without changing any back-end code. When using the API, just click GET, POST or other types of requests with some param ...

Posted by beachcomber on Sat, 09 May 2020 01:20:36 -0700

Laravel - hands on Implementation - email

Laravel has its own SwiftMailer library, which integrates a variety of email API s and can easily send emails. We use the SMTP (Simple Message Transfer Protocol) simple mail transfer protocol, which is generally understood as the mail sending server. 1. Open POP3 and SMTP services 1.1. Here we take QQ email as a case Settings - > account - & ...

Posted by Dimitri89 on Fri, 24 Apr 2020 19:47:03 -0700

Laravel v7.7 publishing container supports variable parameters

The Laravel team yesterday released v7.7.0, which includes container supported constructors supporting variable parameters, some new HTTP client functions, Blueprint's new rawIndex() method and all the latest functions in the 7.x branch. Repair and change: HTTP client GET request support array Daniel Mason contributed to the HTTP client's suppo ...

Posted by busyguy78 on Thu, 23 Apr 2020 00:00:00 -0700

lavarel video project of backnet -- 1. Data migration

1, Summary One sentence summary: 1. The data migration of lavarel is relatively simple, which is to create data tables with php 2. Create migration file: PHP artican make: migration create? HD? Table -- create = HD 3. Create the migration file as a table: PHP artican migrate   1. Install barryvdh / laravel ide helper to add code prom ...

Posted by GrayFox12 on Wed, 22 Apr 2020 05:00:51 -0700

A simple seckill system based on redis implemented by laravel

Note: there are many articles about redis seckill system on the Internet. They are all confused. Then they can realize one by themselves, which is also convenient for later study The implementation method is to use the list queue of redis, and the framework is laravel The core part is the pop operation of list. As atomicity, even if many user ...

Posted by cuboidgraphix on Mon, 20 Apr 2020 10:27:27 -0700

Teach you to use swoole to monitor redis data

swoole How to monitor redis data? Laravel uses swoole to monitor redis Before you start, make sure redis is installed properly and running properly. Laravel code Create a RedisTest event in the App\Events directory   <?php namespace App\Events; use Illuminate\Broadcasting\Channel; use Illuminate\Queue\SerializesModels; use Illuminate\B ...

Posted by sleepingdanny on Fri, 10 Apr 2020 07:32:55 -0700