Configure crontab in Docker container (daocloud + Docker + larave5)

Recently, the project involves the function of a scheduled task, so I have studied the usage of crontab in recent days, and successfully opened this function on my computer according to the related online tutorials   Laravel + crontab Add crontab configuration 1. Execute command $ crontab -e   2. Add the following (path/to is the applicatio ...

Posted by lmhart on Wed, 25 Dec 2019 10:38:55 -0800

PHP uses yansongda/pay to pay Alipay and WeChat

Pay This document is v2.x version, if you want to find v1.x version document, Click https://github.com/yansongda/pay/tree/v1.x Note: v1.x is incompatible with v2.x version After developing Alipay and WeChat Payments several times, it is natural to have a feeling of disgust and inertia. I want to find the wheel related on the internet, but I ...

Posted by MarcB on Wed, 18 Dec 2019 19:59:07 -0800

Video of PHP tips

major function Record your actual call operation and call again where you wantJust like anonymous functions, temporary storage of your call operations is generally used for chain calls, and then it actually works on the object you want to operate onIt's like I didn't say it Usage scenarios If the laravel project uses the warehouse mode, then fo ...

Posted by MobiTec on Thu, 05 Dec 2019 13:22:53 -0800

laravel5 integrated alipay Alipay scan code payment process (Laravel payment solution)

First of all, we will discuss how to use Alipay to pay in Laravel applications. For this, there are many related packages on GitHub, among which the two most popular packages are Omnipay For Laravel 5 & Lumen and Laravel AliPay. Laravel Alipay is used to illustrate the case: Preparation: Alipay account / ant gold service open platform accou ...

Posted by Rollo Tamasi on Wed, 04 Dec 2019 05:01:39 -0800

Chat rooms with Swoole+React

Front-end separated projects, chat rooms implemented by Swoole+React, the framework structure of the entire project can be referenced, front-end react+react-redux+react-router+react-ant, etc. Background uses easySwoole to implement the middleware (data encapsulation, token verification, signature verification) by itself, and carefully look at t ...

Posted by magmazing on Sat, 23 Nov 2019 01:45:57 -0800

How to use multiple Guards in a Laravel application

The article was forwarded from the professional Laravel developer community with the original link: https://learnku.com/laravel/t... If you use Laravel For a while, you should have heard a lot about multiple identities.You should also have heard a lot about certification watchers.However, if you are unfamiliar with Laravel, multiple authentic ...

Posted by ThEoNeTrUeAcE on Mon, 18 Nov 2019 19:21:46 -0800

Code specification - Phan static analysis

Phan brief introduction Phan is a PHP static analyzer that tends to minimize false positives. It tries to prove wrong, not right. It looks for FAQs and verifies the type compatibility of various operations when type information is available or can be inferred. Extended installation ast windows mac: pecl install ast pcntl.so mac: compili ...

Posted by chelerblondi on Sat, 16 Nov 2019 12:23:49 -0800

Laravel queue - database driver (I just learned the queue today and took notes)

Just learned the laravel queue, take notes. 1. First step configuration (. env) QUEUE_CONNECTION=database 2.database drive settings Step 1: generate jobs data migration table php artisan queue:table The effect is as follows:Step 2: create the jobs table and execute the migration command php artisan migrate The effect is as follows: 3. Simulatio ...

Posted by whizzykid on Sun, 10 Nov 2019 10:03:00 -0800

PHP dynamically hides API fields in Laravel

I recently saw a problem in the Laravel Brasil community that turned out to be more interesting than it seemed.Imagine that you have a UsersResource implemented with the following: 1 <?php 2 namespace App\Http\Resources; 3 use Illuminate\Http\Resources\Json\Resource; 4 class UsersResource extends Resource 5 { 6 /** 7 * Transform the ...

Posted by ozzysworld on Thu, 07 Nov 2019 05:49:54 -0800

Laravel + Vue + Element attendance application - HR system

Project address Bee introduce Bee is an attendance application in the human resource system. It is mainly used for employees to apply for false documents. Bee has high performance and expansibility, including front-end and back-end separation, plug-in rule validation (verifier), data filtering (decorator), message queuing, etc. in the MVC mode ...

Posted by JCF22Lyoko on Sat, 02 Nov 2019 15:24:29 -0700