laravel5.5 - Middleware

As a request and response filter, Middleware in laravel has two main functions. 1. Intercept and filter requests before they reach the controller layer. Only validated requests can reach the controller layer. 2. Or filter the data or page response that has been computed in the controller before it returns, and the response that has been v ...

Posted by ForgotMyPass on Tue, 26 Feb 2019 02:27:22 -0800

laravel [mews/captcha] image authentication code api interface form acquisition, verification, does not pass session

[mews/captcha] First, the extended GitHub address is given: https://github.com/mewebstudi... Preliminary preparation and explanation The normal use of this extension in laravel is to save and verify the validation code entered by the user through session, but my current project is completely separated from the background. The front desk uses vu ...

Posted by Balmung-San on Sun, 27 Jan 2019 00:12:15 -0800

Laravel Practice: Service Providers

Preface The last blog article collected information about Laravel Service Container. Portal We know that service containers have two important functions: binding and parsing. So Laravel is such a multi-functional framework. We may need to introduce some other functional packages in our project. These binding must have a unified management tool ...

Posted by kraadde on Mon, 21 Jan 2019 08:24:13 -0800

Laravel Api Development Series - Use of Dingo API

Source code Using Dingo Api The database used in this paper is the same as the basic chapter, so it will not be repeated. Initialization install $ composer require dingo/api:1.0.x@dev register /config/app.php 'providers' => [ Dingo\Api\Provider\LaravelServiceProvider::class, ], In order to be able to customize the configuration, you firs ...

Posted by Weedpacket on Mon, 07 Jan 2019 22:03:09 -0800

Laravel 5 uses Laravel Excel to implement the function of importing and exporting Excel/CSV files

1, introduction Laravel Excel integrates PHPExcel in the PHPOffice suite in Laravel 5 to facilitate the import and export of Excel/CSV files with elegant and expressive code. The GitHub address of the project is https://github.com/Maatwebsite/Laravel-Excel. 2. Installation & Configuration Using Composer to Install Dependencies In this ...

Posted by ensanity on Fri, 04 Jan 2019 22:03:09 -0800

laravel5.1 -- Integrate FileManager and CKeditor into laravel

FileManager Chinese name is File Manager, also known as File Browser, which provides us with a visual interface to manage files and folders. With FileManager, we can browse, add, print, modify (file attributes), rename, search and so on a lot of very useful operations. CKeditor believes that friends are very familiar with it. It's a rich text e ...

Posted by beckjoh on Sat, 22 Dec 2018 23:48:06 -0800

Simplify your concerns and comments - Laravel Follow & Vote

This article mainly introduces two packages: Laravel - Follow : https://github.com/overtrue/laravel-follow Laravel - Vote : https://github.com/jcc/laravel-vote You wonder what these two bags are for? Of course, as the title says, simplify your focus and compliment functions, Laravel - Follow for focus functions, Laravel - Vote for compliment f ...

Posted by tr0gd0rr on Thu, 20 Dec 2018 02:36:05 -0800

Laravel Query Builder Complex Query Case: Subquery Implements partition by Partition Query

case Case study: Laravel attaches the top 10 comments to his list of articles? At the same time, the first 10 comments of each article are queried together when getting the list of articles. This is a typical case of partition query, which needs to be partitioned according to the post_id field in the comments table, and sorted according to the ...

Posted by Chrisj on Tue, 18 Dec 2018 08:30:04 -0800

Introduction to Laravel Source-Start the Boot Process (IV) app/Http/Kernel.php

= = review = = Let's review it again. public/index.php The code is as follows (excluding the detailed comments section). <?php // public/index.php /** * Laravel - A PHP Framework For Web Artisans * * @package Laravel * @author Taylor Otwell <taylor@laravel.com> */ /* |-------------------------------------------------------- ...

Posted by deeessay on Thu, 13 Dec 2018 08:39:09 -0800