shrutiupari

shrutiupari

Software Engineer at Bangalore

Member Since 1 Year Ago

Belagavi

Experience Points
910
Total
Experience

4,090 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
0
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 1
910 XP
Jun
08
1 month ago
Activity icon

Replied to How To Add Select Option Values Into Database?

public function store(Request $request) {

    $validatedData = $request->validate([
        'item_type' => 'required|',
        'description' => 'required|max:40',
        'uom' => 'required',
        'is_sales_order' => 'required',
        'address' => 'required',
    ]);
    $request->input('name');
    ItemRequest::create($request->all());

    return redirect('/itemrequest');

}

this is how i am storing the value

Activity icon

Started a new Conversation How To Add Select Option Values Into Database?

I have a blade file in which I have 2 radio button. On click of one radio button option a dropdown list is populated consisting of first name and on click of another radio button option dropdown list is populated containing emailid. I want to store the value in database based on the dropdown value. As of now it is storing the last dropdown option value into db rather than storing based on selected option. Below is the code for your reference, any help would be great,

` @extends('layout.app')

@section('content')

New Item Request

<form action="/itemrequest" method="post">
    {{ csrf_field() }}
    <div class="form-group">
        <label for="description">Type of Item</label><br/>
        <label class="radio-inline"><input type="checkbox" name="item_type" value="1"> material</label>
        <label class="radio-inline"><input type="checkbox" name="item_type" value="0"> service</label>
    </div>
    <div class="form-group">
        <label for="description">Item Description</label>
        <textarea type="text" class="form-control" id="description" name="description"></textarea>
    </div>
    <div class="form-group">
        <label for="detail_description">Item Detail Description</label>
        <input type="textbox" class="form-control" id="detail_description"  name="detail_description">
    </div>
    <div class="form-group">
        <label for="uom">Unit of Measurement</label>
        <input type="text" class="form-control" id="uom"  name="uom">
        <select class="form-control" name="uom">
            @foreach($type as $data)
            <option>{{$data->unit_name}}</option>
            @endforeach
        </select>
    </div>
    <div class="form-group">
        <label for="address">Business Address</label>
        <select class="form-control" name="address">
            <option>Address 1</option>
            <option>Address 2</option>
            <option>Address 3</option>
            <option>Address 4</option>
        </select>
    </div>
    <div class="form-group">
        <label for="remarks">Remarks</label>
        <input type="text" class="form-control" id="remarks" name="remarks"/>
    </div>
    <div class="form-group">
        <label for="is_sales_order">Is Sales Order?</label><br/>
        <label class="radio-inline"><input type="radio" name="is_sales_order" value="yes"> Yes</label>
        <label class="radio-inline"><input type="radio" name="is_sales_order" value="no"> No</label>
        <!-- <input style="display:none;" type="text" name="otherAnswer" id="otherAnswer"/> -->
    </div>
    <div class="form-group" style="display:none;" type="text" name="otherAnswer" id="otherAnswer">
        <label for="name">Sales Representative</label>
        <select class="form-control" name="name">
             @foreach($name as $data)
            <option>{{$data->first_name}}</option>  
             @endforeach             
        </select>
    </div>
    
    <div class="form-group" class="form-group" style="display:none;" type="text" name="procurement_mgr" id="procurement_mgr">
        <label for="name">Procurement Manager</label>
        <select class="form-control" name="name">
            @foreach($name as $data)
            <option>{{$data->last_name}}</option>  
             @endforeach  
        </select>
    </div>
    @if ($errors->any())
        <div class="alert alert-danger">
            <ul>
                @foreach ($errors->all() as $error)
                    <li>{{ $error }}</li>
                @endforeach
            </ul>
        </div>
    @endif
    <button type="submit" class="btn btn-primary">Submit</button>        
</form>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script> $(document).ready(function(){$("input[type='radio']").change(function(){if($(this).val()=="yes"){$("#otherAnswer").show();$("#procurement_mgr").hide();}else{    $("#otherAnswer").hide();$("#procurement_mgr").show();}});});</script>@endsection

`

Feb
11
4 months ago
Activity icon

Replied to How To Login Using Old Password Method?

Hi All, I am facing the issues again wrt Password. The password that is used in the form *A44329DA553AC9A8C097D6D74C5453ACEED10B93 which is password(password). Now I need to use this password to login, can anyone guide me please?

Jan
24
5 months ago
Jan
22
5 months ago
Activity icon

Started a new Conversation How To Get Customized Fields Exported In Excel Sheet?

I am using data-tables to populate, add, download data. Now I need to have the data exported in excel sheet on the monthly basis. Ex: If certain number of employee's have applied for leave then the data that must be exported in excel should contain date and day of that month along with the leave data that was applied by each employee.

`buttons: [ /'add',/ { extend: 'copyHtml5', exportOptions: { columns: [1,2,3,4,5,6,7,8] } }, { extend: 'print', exportOptions: { columns: [1,2,3,4,5,6,7,8] }, customize: function ( win ) { $(win.document.body) .css( 'font-size', '10pt' ) .prepend( '' );

            $(win.document.body).find( 'table' )
                .addClass( 'compact' )
                .css( 'font-size', 'inherit' );
        }
        },{
        extend: 'excel',
        exportOptions: {
            columns: [1,2,3,4,5,6,7,8]
        },
        title:"Employee Leaves Data"
        },{
        extend: 'csv',
        exportOptions: {
            columns: [1,2,3,4,5,6,7,8]
        },
        title:"Employee Leaves Data"
        },{
        extend: 'pdf',
        exportOptions: {
            columns: [1,2,3,4,5,6,7,8]
        },
         title:"Employee Leaves Data"
        }
   ],

`

`