随笔分类 -  laravel

摘要:比如说有三个模型,我想实现这样的效果: SELECT DISTINCT `platforms`.* FROM `company_products` INNER JOIN `platforms` ON `company_products`.`platform_id` = `platforms`.`id 阅读全文
posted @ 2023-06-07 16:00 爱家家的卡卡 阅读(94) 评论(0) 推荐(0) 编辑
摘要:$query = PayoneerAccount::where([ 'ap_cid' => $apCid, 'payoneer_id' => $payoneerId, 'state' => $state, ]); $sql = $query->toSql(); $bindings = $query- 阅读全文
posted @ 2023-05-12 17:12 爱家家的卡卡 阅读(99) 评论(0) 推荐(0) 编辑
摘要://追加字段 protected $appends = ['state']; //赋值 public function getStateAttribute() { $status = $this->attributes['status']; if ($status == 1) { return '已 阅读全文
posted @ 2022-11-25 10:39 爱家家的卡卡 阅读(565) 评论(0) 推荐(0) 编辑
摘要:官网文档:https://learnku.com/docs/laravel/9.x/installation/12200#getting-started-on-macos curl -s "https://laravel.build/example-app" | bash 此 URL 中的「exam 阅读全文
posted @ 2022-11-10 14:30 爱家家的卡卡 阅读(597) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示