This article records my problems and experiences in using Laravel: Version Laravel 8

Eloquent & Model

  • Default model property values cannot be useddate()Function:

  • DB::selectMake it return an array instead of an object:https://www.cnblogs.com/handongyu/p/8406429.html)
<? PHP $Data = array_map('get_object_vars', DB::select(' query '));