예제 #1
0
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store(PaidServiceRequest $request)
 {
     $proposal = $request->all();
     Proposal::create($proposal);
     return redirect('paidservices');
 }
예제 #2
0
파일: Subject.php 프로젝트: zogodo/weibin
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getProposals()
 {
     return $this->hasMany(Proposal::className(), ['subjectId' => 'id']);
 }