随笔分类 - laravel
摘要:比如说有三个模型,我想实现这样的效果: SELECT DISTINCT `platforms`.* FROM `company_products` INNER JOIN `platforms` ON `company_products`.`platform_id` = `platforms`.`id
阅读全文
摘要:$query = PayoneerAccount::where([ 'ap_cid' => $apCid, 'payoneer_id' => $payoneerId, 'state' => $state, ]); $sql = $query->toSql(); $bindings = $query-
阅读全文
摘要://追加字段 protected $appends = ['state']; //赋值 public function getStateAttribute() { $status = $this->attributes['status']; if ($status == 1) { return '已
阅读全文
摘要:官网文档:https://learnku.com/docs/laravel/9.x/installation/12200#getting-started-on-macos curl -s "https://laravel.build/example-app" | bash 此 URL 中的「exam
阅读全文