problem description I wonder why an one-dimensional array becomes Boolean after experiencing walk. Ask the boss who knows to help solve the doubt. related codes public function test(){ $arr = [ 20181102 , 20181103 , 20181104 , 201811...
I used this update statement in three scenarios the first two scenarios that I commented out are updated without a problem when the third scenario is updated, update-time has been updated, but status has not been updated I don t quite understand wh...
the front end uses the upload component of iview to upload pictures, and the back end uses laravel5.6 to upload pictures. It is found that the picture content is empty using $request- > all () , as shown in the following figure . $_FILES I don t ...
as the title: see in the official documentation that you can use the Artisan::queue queue to execute command. But after looking for it for a long time, I don t know how to set the number of retries. If any boss knows, ask for advice. use Illuminate S...
problem description typical mobile phone number problem. The database varchar, mobile phone number is indexed, but php passes the parameter int public function getByPhone ($phone) { return $this->userFollow ->where( phone , $phone) -&...
ready to develop Mini Program, first test the background API, project to develop using Laravl+jwt+dingo. JWT wants to find such a middleware on the Internet during painless refresh token, testing public function handle($request, Closure $next) ...
1. At present, we are working on a page to calculate the inventory of the warehouse. The page is as follows: : idwarehouse_id product_idid that way, when a new warehouse address is added to the warehouse table, I don t need to change the code pa...
problem description the project requires programs to connect to multiple databases (about 30, with the same username and password, but different library names). How to operate gracefully in Laravel? reference I have looked up the article Laravel ...
Project to achieve three-tier distribution; rebate to all superiors (up to three levels) after database design and user registration but I don t have a clue. Please give me a thought. if it is directly registered to reward 20 yuan if it is throug...
recently, a new project needs to redesign a set of interfaces for app . We use PHP + laravel . The initial design is abc.com api v1 as the online access portal qa.abc.com api v1 as the access portal to the test environment pre.abc.com api v1...
can laravel specify other controller in the middleware without changing the content of the address bar (that is, not using redirect) public function handle($request, Closure $next) { if(!($request->is( admin * ) || $request->is(...
for example, if the title nginx is cross-domain, there will be a problem if the returned HttpCode is not 200 if the requested address HttpCode is 200. there is no problem. If it is not 200, there will be an error that cannot cross domains! how to set...
write a production and consumption program for redis queue in laravel execute the consumption command, specifying that the connection connection and queue queue name can be consumed normally, but not without specifying the queue name. Why? Shouldn t ...
while (! $lock) { $lock = Redis::set( lock .$id, $random, nx , ex , $ttl); } I want to throw an exception at the timeout I specified in this sentence. ...
ask a question about Laravel parsing, or Nginx parsing path. first of all, let s talk about the source of the problem. Since we are recently working on a laravel-based directory indexing program, one of the requirements is to show the file at the end o...
I am currently working on a CMS-like project using Laravel. there is a template function to be used by the front end. It is similar to the template function implemented by most CMS. Add the following code to the template file to implement the presentat...
$server = new SoapServer(null, [ uri => noganluonguri ]); $server->setObject(new NganluongServer()); ob_start(); $server->handle(); return ob_get_clean(); now there is a need to use wsdl,laravel. How should I use it? ...
items are separated from front and rear! at present, you want to access 4 login of Weibo, login of Alipay, login of qq, login of Wechat. first question: should data tables be designed with four tables or one table with an app_type field! Specify whi...
some time-consuming third-party requests are encountered in the current project, so I want to write a command to execute these time-consuming third-party requests asynchronously. The command, is triggered when the user requests the relevant interface an...
want to customize the laravel view location. The custom view is not intended to be put into resource, and the original view under views should be retained. How to set it? ...