Tag:laravel

  • Laravel service container must know

    Time:2020-4-4

    The article was forwarded from the professional laravel developer community. Original link: https://learnku.com/laravel/t To learn how to build an application with laravel is not only to learn how to use different classes and components in the framework, but also to remember allartisanCommand or all helper functions (we have Google). Learning to code with laravel is […]

  • Interpretation of the package auto discovery mechanism in laravel

    Time:2020-3-27

    The article was forwarded from the professional laravel developer community. Original link: https://learnku.com/laravel/t Before we go into exploring how the provider and facade of laravel package are automatically discovered, let’s take a brief look at the concept of package in PHP. A package is a code fragment that can be reused in multiple projects. For […]

  • The implementation of multiple redis libraries configured by laravel

    Time:2020-3-21

    Introducer After compiling, installing and installing the extension, redis can be used normally. But there are other operations in laravel. Installation extension To use redis in laravel, you need to installpredisExpand. Usecomposer require predis/predisJust install it. Modify configuration Redis is configured inconfig/database.phpFile, modify as required, I don’t need to change here; Set the default cache […]

  • Laravel 5.4, broadcast events, pusher configuration and use

    Time:2020-3-20

    It was published two years ago, and the original address is https://learnku.com/articles/ Recently, I want to write a chat room, so I learned about laravel‘s event broadcast. The reference is from http://laravelaccademy.org/pos… But when I followed the blogger, I found that the event was triggered successfully, but no event was received on the pusher debugging […]

  • How do you handle enum in PHP code?

    Time:2020-3-17

    The article was forwarded from the professional laravel developer community. Original link: https://learnku.com/laravel/t This article aims to provide a better understanding of what enumerations are, when to use them, and how to use them in PHP We sometimes use constants to define some constant values in the code. They are used to avoid magic values. […]

  • Increase the speed of laravel scout import by 64 times

    Time:2020-3-10

    The article was forwarded from the professional laravel developer community. Original link: https://learnku.com/laravel/t The next version of laravel scout will make your model query 64 times faster. I tested a table with 1632576 pieces of data using the null scout driver. The time consumed has been reduced from 29 minutes and 57 seconds to 28 […]

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

    Time:2020-3-5

    The article was forwarded from the professional laravel developer community. Original link: https://learnku.com/laravel/t In the third part, instead of building a real client, we learned a new way to get component data using Vue routing. Now we’re ready to turn our attention to the ability to create crud for users – this tutorial will focus […]

  • Laravel data migration and implementation of eloquent ORM

    Time:2020-3-3

    Introducer Database is the most common and important part of back-end development. Laravel provides a very practical eloquent ORM model class, which is simple and intuitive to interact with the database. At the same time, data migration management database can be used for sharing and editing with the team. For more information on both, please […]

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

    Time:2020-3-2

    The article was forwarded from the professional laravel developer community. Original link: https://learnku.com/laravel/t In part 4, we finished editing users and learned how to use themv-modelTo listen for changes in user information in the view component. Now we can start thinking about how to delete the user function and how to deal with it after […]

  • Laravel 6 tutorial learning notes

    Time:2020-3-1

    This paper is the learning notes of L01 laravel course – Introduction to web development practice (laravel 6. X), which is convenient to quickly view the important knowledge points of laravel 6 in work. Original link: https://www.childsay.com/laraSynchronization time: October 12, 2019 Common operations of homestead vagrant //Make sure to operate in this directory cd ~/Homestead […]

  • The implementation of data filling with faker in laravel

    Time:2020-3-1

    Introducer During development, it is necessary to add test data. Laravel has built-in convenient data filling. The following is an example. Be careful:Faker has been built into the laravel5 framework, no need to install data migration Create data model and data migration first php artisan make:model Models/FakerUser -m; Just create a few simple fields and […]

  • The implementation of laravel 5.7 database operation migration

    Time:2020-2-29

    brief introduction Migration is like version control of a database, which allows teams to easily edit and share the database table structure of an application. Migrations are often paired with laravel‘s schema builder to easily build the database table structure of an application. If you have frequently told team members that you need to manually […]