Tag:laravel

  • Light PHP high performance PHP framework based on swoole

    Time:2020-2-20

    🚀Light-phpIt is a high-performance PHP framework based on swoole, with lightweight encapsulation and ease of use, which makes it perform well in small and medium-sized high-performance projects. directory Environmental requirements Installation tutorial configuration file Route middleware Controller hook Task task WebSocket data base Pressure test Environmental requirements rely on Explain PHP >= 7.2 Recommendation 7.2 […]

  • Laravel authorization: authorization library supporting ACL, RBAC, ABAC and other models

    Time:2020-2-15

    Based on caspin, laravel authorization is an authorization library that supports access to multiple access control models (such as ACL, RBAC, ABAC, etc.).Before that, you need to understandCasbin 。 install UseComposerInstallation: composer require casbin/laravel-authz Lauthz\LauthzServiceProvideryesauto-discoveredBy default, but if you want to register yourself, you canconfig/app.phpAdd inServiceProvider: ‘providers’ => [ /* * Package Service Providers… */ […]

  • Create a Vue single page application through laravel (6)

    Time:2020-2-13

    The article was forwarded from the professional laravel developer community. Original link: https://learnku.com/laravel/t We will complete the final part of the basic curd: creating new users. You already have all the tools you need in the topics we discussed earlier, so you can try to create users and compare this article with your work. If […]

  • Scheduled task events will be added in laravel 6.0.4

    Time:2020-2-10

    The article was forwarded from the professional laravel developer community. Original link: https://learnku.com/laravel/t Laravel team announcesLaravel v6.0.4Coming soon. This release includes scheduled task events, new JSON assertion methods, and all the latest changes. Let’s take a look at some of the highlights and new features in this release: First, inTestResponseClass added aassertJsonPath()Assertions, which are very […]

  • Understand the operation mode of swoole and accelerate the application of laravel

    Time:2020-2-10

    First,SwooleSwoole redefines PHP as an extension of PHP, which enables PHP to execute asynchronously, just like node, and use socket, providing a series of asynchronous IO, event driven and parallel data structure functions for PHP.Swoole4 supports a complete co programming mode, which enables asynchronous programs to be implemented with fully synchronized code. PHP code does […]

  • An example of how to implement the service container of laravel

    Time:2020-2-9

    1. Nature of container The service container itself is an array, the key name is the service name, and the value is the service. A service can be an original value or an object, which can be said to be arbitrary data. The service name can be a custom name, a class name of an […]

  • How laravel creates server provider instance code

    Time:2020-2-8

    Preface Laravel server container: a tool for managing class dependencies and performing dependency injection. Let’s show you how to create a server provider, which is the core of laravel. I don’t have much to say. Let’s have a look at the detailed introduction Create the testcontract.php file in the app / contracts directory. Its contents […]

  • Simple comparative analysis of Ruby on rails and laravel

    Time:2020-2-8

    At present, there are many popular frameworks for online web application development. There are also many different types of frameworks, such as those with a large number of plug-ins, which can let you iterate more quickly (such as rails), or other very simple and low-level (such as flask)Two relatively more popular frameworks in web application […]

  • Large scale laravel application

    Time:2020-2-7

    The article was forwarded from the professional laravel developer community. Original link: https://learnku.com/laravel/t (if you just want to see the solution,click here ) Laravel is the most popular PHP framework so far, with clear directory structure and elegant syntax. It is very good to use the default directory structure provided by laravel in small and medium-sized […]

  • New version 2.0 of gorose of orm in go language

    Time:2020-2-6

    Laravel’s eloquent, known as go language version, has released version 2.0 which has been long lost. The new version has made great improvements and upgrades. Let’s take a look at the features of the new version Structural adjustment Gorose version 2.0 has been completely restructured with a new architecture, as shown in the figure below: […]

  • Four ways to transfer data from laravel to Vue

    Time:2020-2-2

    The article was forwarded from the professional laravel developer community. Original link: https://learnku.com/laravel/t For the past two or three years, I’ve been working on projects that use Vue and laravel at the same time, and at the beginning of each project development, I have to ask myself, “how do I transfer data from laravel to […]

  • An example of the implementation of the file upload function of laravel framework

    Time:2020-2-1

    An example of this paper describes the implementation of the file upload function of laravel framework. To share with you for your reference, as follows: Based on the laravel 5.2.45 framework, the file upload function is implemented as follows: Implementation steps: (1) . profile modification openconfig/filesystems.php file Add the following code to the ‘disks’ array […]