/** * Store a newly created resource in storage. * * @return Response */ public function store(PaidServiceRequest $request) { $proposal = $request->all(); Proposal::create($proposal); return redirect('paidservices'); }
/** * @return \yii\db\ActiveQuery */ public function getProposals() { return $this->hasMany(Proposal::className(), ['subjectId' => 'id']); }