摘要: $data['base_path'] = base_path(); $data['config_path'] = config_path(); $data['yuming'] = url()->previous(); $data['app_path'] = app_path(); $data['pu 阅读全文
posted @ 2021-09-08 17:36 CanyingV 阅读(27) 评论(0) 推荐(0) 编辑
摘要: use Illuminate\Support\Facades\Route; Route::get('/', function () { return view('welcome'); }); Route::get('phpinfo', function () { return phpinfo(); 阅读全文
posted @ 2021-09-08 17:21 CanyingV 阅读(17) 评论(0) 推荐(0) 编辑
摘要: public function select(){ //查询一条 // $res=User::find(1); // $res=User::where('id',1)->first(); //查询单条数据的单个字段的值 // $res=User::where('id',1)->value('user 阅读全文
posted @ 2021-09-08 15:33 CanyingV 阅读(158) 评论(0) 推荐(0) 编辑
摘要: public function index() { $data = [ [ 'id' => 1, 'b' => '11', 'c' => '11', ], [ 'id' => 2, 'a' => '33', 'b' => '33', ], [ 'id' => 3, 'a' => '22', 'b' 阅读全文
posted @ 2021-09-08 09:10 CanyingV 阅读(34) 评论(0) 推荐(0) 编辑