sayful

sayful

Member Since 3 Years Ago

Dhaka

Web Programmer at TMS Data, LLC

Experience Points 48,870
Experience Level 10

1,130 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 488
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • start-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-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-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist 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.

28 May
3 years ago

sayful left a reply on Get Url Param Vue Js And Laravel (really I Need Your Help)

When you return the form.

public function index($id)
    {
        return view('student.index', compact('id'));
    }

Now on Vue script.

fetchSubjects: function(){
            var self = this;
            var studentID = {{ $id }}
            this.$http({
                url: 'http://localhost:8000/reservation/' + studentID  + '/student',
                method: 'GET'
            }).then(function (reservations){
                this.$set('reservations', reservations.data);
                console.log('success');
                
            }, function (response){
                console.log('failed');
            });
        }

sayful started a new conversation Save Data With Ajax From Dynamic Form Created From List

I am working with dynamic fields generated from list. The list is look like as following.

"properties": [
  {
    "id": 2,
    "account_number": "01080997",
    "status": "For Sale",
    "winningbid": "100",
    "in_mylist": true,
  },
  {
    "id": 3,
    "account_number": "00503932",
    "status": "For Sale",
    "winningbid": 300,
    "in_mylist": true,
  }
]

My html code is as following.

<tr v-for="property in properties | filterBy search" track-by="id">
    <td><label><input v-model="property.in_mylist" type='checkbox' value="1">Create list</label></td>
    <td>@{{ property.account_number }}</td>
    <td>
        <select class="form-control" v-model="property.status">
            <option value="For Sale">For Sale</option>
            <option value="Withdrawn">Withdrawn</option>
        </select>
    </td>
    <td>
        <input
            type='text'
            class='form-control'
            autocomplete='off'
            v-model="property.winningbid"
        >
    </td>
</tr>
<script type="text/javascript">
    new Vue({
        el: "#auctionDayView",
        data: {
            search: '',
            properties: [],
        },
        ready: function() {
            $.ajax({
                url: '/url-goes-here',
                success: function(result) {
                    this.properties = result;
                }.bind(this)
            });
        }
    });
</script>

It works fine but I want to update the change to my mysql database. How can it detect which element has been changed. Suppose property with ID 3 has been changed. How can I get like the following.

  {
    "id": 3,
    "account_number": "00503932",
    "status": "Withdrawn",
    "winningbid": 150,
    "in_mylist": false,
  }

Thanks in advance.

09 May
3 years ago

sayful left a reply on Where Are You All From?

Dhaka, Bangladesh