An example of RBAC permission management operation implemented by PHP Laravel5
According to different permissions, different functions are displayed in the menu bar, only the menu is limited. If the route is also limited, please improve and develop according to the example of the menu. Next, please study carefully the RBAC design of laravel
1. Create table (user table, role table, permission table, user role table, role p ...
Posted by Rangel on Mon, 18 Nov 2019 16:16:25 +0100
In depth explanation of Laravel's IoC service container
The article was forwarded from the professional Laravel developer community. Original link: https://learnku.com/laravel/t...
as everyone knows, Laravel The function of inversion of control (IoC) / dependency injection (DI) is very powerful. Unfortunately, Official documents I didn't explain all of its functions in detail, so I decided to prac ...
Posted by maineyak on Fri, 15 Nov 2019 09:20:34 +0100
Laravel full text searchelasticsearch
Using Elasticsearch search search engine, configure ik Chinese word segmentation, associate with Laravel model, and then realize the business logic of search. This is the end of the article. Use the Scout extension package of Laravel to complete the search function
To continue, Scout and Elastic enabled expansion packs have been installed and c ...
Posted by fpyontek on Sat, 02 Nov 2019 21:57:24 +0100
Another way to analyze the dependency injection function of Laravel framework
The article was forwarded from the professional Laravel developer community. Original link: https://learnku.com/laravel/t...
this StackOverflow answer It perfectly explains the concept of dependency injection.
Fundamentally speaking, dependency injection is not to let an object create a dependency, nor let a factory object create an object, b ...
Posted by The Midnighter on Wed, 30 Oct 2019 02:20:30 +0100
How does laravel use swoole to develop websocket active message push
Requirement: to achieve a function that can actively trigger message push, this function can be used to send customized messages to all members of the template message, instead of sending messages through the client. The message in the message on the service end listens for the messages to be sent for relative business logic.
Active message pus ...
Posted by nedpwolf on Mon, 21 Oct 2019 11:04:35 +0200
Laravel combined with swoole to implement websocket active message push
Laravel combined with swoole to implement websocket active message pushRecently, I am studying a project of laravel+swoole chat room. I want to realize a function that can actively trigger message push, which can send customized messages to all members of the template message, instead of sending messages through the client. The message in the m ...
Posted by robindean on Wed, 16 Oct 2019 11:09:43 +0200
render does not take effect when Larave develops Dingo to handle custom Exception s [Solution]
1. The way to use Dingo Api to customize Exception is
First, define Exception classes, such as AppExceptions ApiException
namespace App\Exceptions;
use Exception;
use Throwable;
class ApiException extends Exception
{
public function __construct(string $message = "", int $code = 1, Throwable $previous = null)
{
parent::__constr ...
Posted by quintin on Tue, 08 Oct 2019 17:53:00 +0200
Caching data in the Model layer of Laravel
The article was forwarded from the professional Laravel developer community with the original link: https://learnku.com/laravel/t...
You may have cached model data before, but I'll show you a more sophisticated Lavell model caching technique that uses dynamic recording models, which I started with. RailsCasts Learned technology.
Using the uni ...
Posted by tmann on Thu, 26 Sep 2019 05:17:43 +0200
Integrating swoole components in laravel5.8 - servers and clients implemented in collaboration - how static files are deployed
Currently, the more mature technology is to use the laravelS component. Note that laravelS differs from laravelS by one more capitalized S. Since laravelS listens on port 5200 by default, some adjustments will be made to the laravelS project
For example:
How static files are introduced--load from a static resource server
The familiar int ...
Posted by trulyafrican on Mon, 29 Jul 2019 21:41:21 +0200
5. General layout of blogs
5. General layout of blogs
Initialization
Create controllers, models, migrations
The core of blog is articles, which can be realized first. According to the introduction of the previous sections, we need to create at least these categories:
Posts Controller: Controller
Post: Model
create_posts_table: migration task
Although they can be create ...
Posted by dirtyfrenchman on Tue, 09 Jul 2019 23:14:35 +0200