Little Wechat official account project, which does not use composer packages such as easywechat, but is developed by pure source laravel when obtaining openid, to determine whether url code, does not exist, header ( "location:xxx ") to exchange for ...
wanted to see how laravel encapsulated monolog, and then clicked on the code. Here comes the problem. Let s take a look at it. Controller Code <?php namespace Illuminate Support Facades; use Mockery; use RuntimeException; use Mockery MockInt...
get the encrypted value of Cookie in the construction method. How to convert it to unencrypted value public function __construct() { echo Cookie::get( customer_id ); eyJpdiI6Im5NZVNkTnpJSlFib3BpXC91VmdHWFJ.... } public function in...
course id = record cid, uid id , foreach , the code is as follows $course = DB::table( course )->get(); foreach ($course as $key => $value) { $value->recording = DB::table( record )->where( cid , $value->id)->get(...
template: Route::get( book store , BookController@store ); ...
how does GraphQL upload files? Vue-apollo, for front end laravel-graphql for back end ...
now there is a project, and the demand is too painful! the price of each type of vip, from vip1 to vip5, is different! there is a data table in the backend that stores vip type vip_type with vip type price (money) and grade (level) now users write...
$arr = array( 0 =>array( name => james , age =>30, ), 1 =>array( name => susu , age =>26, ) ) how to quickly eliminate th...
methods that have been tried remove cross-env ...
1.laravel created a new resource controller class UserController extends Controller { public function index() { echo "i am index"; } public function create() { echo "i am create"; } pu...
after the first model association is taken out how to get the user information out of the third model anchor ...
< H2 > this allows < H2 > visit users 1 pass, visit users a will 404 Route::pattern( id , d+ ); Route::resource( users , UserController , [ parameters => [ Id pattern user => id , ]]); ...
data batch check and insert, because each record needs to be compared with the data already existing in the database, compare the insertion of OK, compare the generated error messages of non-OK, and export an excel file after all execution. in the pas...
version: laravel 5.7 when using the $appends attribute of the model modifier to add elements and using faker to generate false data, an error is reported: Unknown column sex_str Model related code: $factory->define( App Models User::cl...
I remember that there is a platform that provides interfaces to add, delete, modify and check data. but forget which website it is. If you know, please let me know. write a simple small project, do not want to build php+mysql Thank you! ...
<template> <div> <transition :name="transitionName" @afterLeave="afterLeave"> <keep-alive> <router-view v-if="$route.meta.keepAlive">< router-view> ...
problem description does Laravel have its own internal method to flatten the output of the associated table and the original table: [] a => 1 , b => 2 , c => [ d => 3, e => 4, ] ] [] a => 1...
I want to save it directly when I click on the tick after editing the cell. Could you tell me how to change it? Baidu s use of onEditableSave didn t work either. <td class="role_edit" data-type="checklist" id="role_edi...
when php7.3 , laravel5.7 , mysql8.0 is installed on centos7.5, the following error occurs when running php artisan migrate : Illuminate Database QueryException : SQLSTATE[HY000] [2054] The server requested authentication method unknown to the...
problem description A rookie. At present, an order automatically generates an invoice, an order form, an invoice form, and an one-to-one relationship. Now the backstage needs to add a function to realize that multiple invoices of a user can be combine...
webpack configuration: entry:{ index :[ webpack-hot-middleware client?path= __webpack_hmr&timeout=10000&reload=true ,path.resolve( assets view index entry.js )], sub :[ webpack-hot-middleware client?path= __webpack...
what is the cause? How to solve the problem, but also look to God for guidance. ...
Mini Program s default startup page is the page specified in pages. Now you need to use the page in the separate subcontract as Mini Program s startup page, how to configure it. ...
error message is Warning: Can only update a mounted or mounting component. This usually means you called setState, replaceState, or forceUpdate on an unmounted component. This is a no-op. The step is: there are two pages, an and b, which are table, ...
currently, there is no problem with exporting excel files that save text. but now the excel that needs to be exported contains pictures, so please kneel down here and beg for your help! ...