In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article introduces to you what are the expansion packages used to build Laravel applications, the content is very detailed, interested friends can refer to, hope to be helpful to you.
Here are 10 + packages for building Laravel applications
Why create a list of this package? Because I am a "lazy" developer, I am a member of several Laravel groups on Facebook. The most common problem encountered every day is that developers need to use those packages. I'm lazy, so I don't want to start these things from scratch every time.
1. Module
If you are not developing a "toy project". Then, it is recommended to use modules and divide them by module functions. Centrally manage the entity, controller, view, routing, configuration and other information of the module. What else? And it is more convenient to transfer code between multiple applications.
advantage
Code encapsulation
Order in the code
Code transfer for multiple applications
Code generator -modules, controllers, entity classes, etc.
See Github https://github.com/nWidart/laravel-modules for details
2. Spatie permissions
If you don't know Spatie, you should start getting to know them right away! A great company. The role and permission package of Spaite is one of the best in the permission package.
Advantages
Role
Authority
Direct authority
Middle ware
Rich blade template commands
Artisan command
Where can I get it? Https://github.com/spatie/laravel-permission
3. Laravel Datatables
If you use DataTables and you are creating your own JavaScript, Ajax, routing, database queries, filters, searches, etc. Trust me, this is a better solution.
Advantages
Easy to use
DataTable service
Custom database query
Generate JavaScript
Multiple customization
Where can I get it? Https://github.com/yajra/laravel-datatables
4. Form constructor
To be honest, I don't like mixing forms in HTML. The Laravel form constructor separates your form from the HTML view.
advantage
Easy to use
Form objectification
Support for multiple form fields
Support for child tables
Easily create custom form fields
See Github: https://github.com/kristijanhusak/laravel-form-builder for details
5. Flash notification
After saving the form data, I redirect to the list page, edit page, or presentation page. With Flash notifications, we can easily give users success, warning or error prompts.
advantage
Easy to use
Multiple parameters (success, error, warning, pop-up window, tone, etc.)
Customize the view
See Github: https://github.com/laracasts/flash for details
6. Laravel Menu package
If your application needs to easily change different menu items according to user roles or permissions, you shouldn't miss this package.
advantage
Easy to use
Multi-view reuse
Custom definition
Data fillability
Cacheable
Look at this, https://github.com/spatie/laravel-menu.
7. Laravel Activity Log
Many data administrators want to record all the active records of their users. This package can easily record when and where your users create and update entity records. In addition, this package can now record changes in data between multiple versions of entities.
advantage
Simple entity implementation
Record all users and times of entity creation and update
Support recording custom information (login, logout, etc.)
Poke me, https://github.com/spatie/laravel-activitylog.
8. Laravel Js Validation
This is my dish! Doesn't it sound great to automatically perform front-end validation based on the requested data object? Yes, that's right! The goal of us lazy people is-the less code, the better!
advantage
Generate front-end verification based on the request object
You don't need to write any Javascript code (yes, you heard me right)
Support for asynchronous validation (unique, whether it exists, custom rules, etc.)
Multilingual
Come on, https://github.com/proengsoft/laravel-jsvalidation.
9. Persistent settings
This package will come in handy if your application contains many and complex configuration items (themes, logo, company settings, API settings, default settings, etc.). It stores the configuration information of a key-value pair (key = > value) in the database, and then you can easily use them with auxiliary methods in your application!
advantage
Cacheable
Can be encrypted
Contextual settings (user examples)
Where can I get it? Https://github.com/edvinaskrucas/settings
10. Multi-tenant
In developing SASS application services, each customer has its own database, domain name, and subdomain name, and does not put them all in the same code repository. If you have similar requirements, this project is for you.
Features:
Multiple databases
Multiple domain names and subdomain names
Automatically generate Apache or Nginx configuration files
Support queues
Separate storage of files is supported.
You can get it here: https://github.com/hyn/multi-tenant
This is the end of the expansion packages used to build Laravel applications. I hope the above content can be of some help and learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.