• #410

    Riccardo
    Participant

    806

    Record to Database

    I want to add another form field when backers donate. I have created this in the checkout.blade.php

    <input type=”text” class=”form-control” id=”comment” value=”@if(Auth::check()){{auth()>user()>comment}}@else{{ old(‘comment’) }}@endif” name=”comment” placeholder=”Leave a comment here”> {!! $errors->has(‘comment’)? ‘
    ’.$errors->first(‘comment’).’

    ’:’’ !!}
    I added column in payments table ‘comment’

    When i submint donation in the database it give me NULL. What do i need to add to record input field?

Viewing 1 replies (of 1 total)
  • #411

    Riccardo
    Participant

    i figured it out, i need to add a few lines in the campaignController.php

Viewing 1 replies (of 1 total)

Purchase for access

Buy a copy of GetFund – A Professional Laravel Crowdfunding Platform for access to our member center.

Buy