problem description the tries of the queue is set in the queue with laravel+redis, but when an exception is encountered in the queue (the exception thrown by itself or by the system), the exception is displayed directly in the console and then the que...
the current API is as follows: generate a token randomly after the user logs in. Use the value of token as the key cached by Redis . The cached value is the user s information, including user id, user nickname, user avatar, etc. Interface access and...
borrow one-to-many examples from the remote layer of the official website posts id-integer user_id-integer users id-integer country_id-integer name-string countries id-integer name-string now my business logic is on po...
what is the difference between personal access token and json web token for user Authentication? A personal access token is just a JWT created for user authentication with your own frontend to offer your users a dashboard for managing personal acces...
Do not use curly braces after @ if correct posture so @if(Auth::user()->id == $article->user_id) xxx @endif -the following is the original question, which we are free to despise- I want to determine whether it is the user s own stuff in bla...
The document is only a brief description, but there is no https: laravel-china.org doc. that explains how to call it. there is no get method found in the file Illuminate Redis RedisServiceProvider.php . ...
as shown in the and code in figure, the extension package is automatically killed when it is downloaded, and the waiting time is no more than 10 seconds. [root@VM_49_167_centos shop]-sharp composer require mews captcha Do not run Composer as root su...
I am currently working on a web site based on php + mariadb , but recently I want to change the web site to laravel traffic , but it is impossible to achieve it in the short term. so I want to ask the great gods how can I change the code to achieve t...
problem description here are two data tables: order,user. Table relationship order.user_id Association user.id . Design a scene: in the background management, we need to search for orders, such as searching according to time and user name. ...
use SoftDeletes; if the above sentence is introduced into the model, it will be included in the query . deleted_at is null this condition but I found that the table structure field is 0. I would like to ask how to solve at this time....
1. I made a global scope for the article model to soft delete data public static function boot() { parent::boot(); static::addGlobalScope( myPost ,function(Builder $builder){ $builder->where( mark_status , <> ,-1); }...
Why can the Laravel controller be accessed properly using protected decorations? protected function advert() { try { $result = $this->systemService->advert (); return $this->...
after changing the user s password, the user automatically logs out where the laravel is set or how it is implemented ...
I use the laravel framework, the apach environment built by xampp, header ( content-type:application:json;charset=utf8 ); header( Access-Control-Allow-Origin:* ); header( Access-Control-Allow-Methods:POST ); header( Access-Control-A...
the demand is like this. After the seller publishes the product, the buyer buys it, and the buyer confirms it after completion. do you want to create two data tables for buyers and sellers to store order data? because once the buyer deletes the orde...
I modified the opcache.ini file to configure as follows < hr > ; NOTE: The actual opcache.so extention is NOT SET HERE but rather ( usr local etc php conf.d docker-php-ext-opcache.ini) opcache.enable= "1 " opcache.memory_consumption= "256 " opca...
the puzzling point is what supports the security of eloquent. For example, we can use preprocessing commands to insert some information into the database, but I don t find preprocessing statement commands in eloquent ....
I want to run laravel app, in docker. Here are my steps. I hope someone will tell me what went wrong. 1. Create a laravel app locally composer create-project --prefer-dist laravel laravel laravel-app 5.6 2. Create docker-compose.yml version: ...
problem description the vue project introduces that the custom font file is too large, and the font file ttf is 8m. Causes the website to load very slowly the environmental background of the problems and what methods you have tried related codes ...
I checked the execution results from the local docker container. Here is the test I have done: step1. build a php-composer image using dockerFile FROM php:7 RUN apt-get update RUN apt-get install curl RUN curl -sS https: getcomposer.org installer...