bhavuksuthar

bhavuksuthar

Member Since 2 Years Ago

Experience Points 19,120
Experience Level 4

880 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 189
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.

04 Jun
1 month ago

bhavuksuthar started a new conversation Laravel Update OneToOne Relationship Data From Repository

Hi

I am using Laravel 5.8 with a new project and trying out the repositories pattern.

I have a question about updating the OneToOne relationship model from repositories.

For Example, I have a user model and the address model.

I have a single form to update fields of both models.

I have 2 separate repositories like UserRepository and AddressRepository.

Now should I call AddressRepository from winthing UserRepository->update method or should I make 2 calls in [email protected] method one to UserRepository->update and in next line AddressRepository->update?

What is the best way to approach this?

30 May
1 month ago

bhavuksuthar left a reply on How To Design An API For Posts, Categories And Subcategories

Hi

  1. There are few videos here on Laracast on slugs https://laracasts.com/lessons/unique-slugs-in-laravel https://laracasts.com/series/lets-build-a-forum-with-laravel/episodes/76

Or here is a post with similar code to create a unique slug https://dotdev.co/creating-unique-title-slugs-with-laravel/

  1. I think if the slugs are unique route model binding will give you the exact instance
19 Feb
5 months ago

bhavuksuthar started a new conversation Vue Js Open Sketchpad In Vue-js-modal

I am new with Vue and trying to open sketchpad inside vue-js-modal.

I am not sure what am I doing wrong here.

I am using VueModal and vue-signature-pad.

It works fine on the page but I could not make it run in the modal.

Here is the link to codesandbox

App.vue code is as follow

<template>
  <div id="app">
    <v-dialog />
    <div class="container">
      <div class="row">
        <div class="col-12 mt-2">
          <div class="col-6 mt-2">
            <button class="btn btn-secondary" @click="showButtonsDialog">
              Open Dialog
            </button>
          </div>
        </div>
       <div class="col-12 mt-2">
          <VueSignaturePad
            id="signature"
            width="100%"
            height="100%"
            ref="signaturePad"
          />
        </div>            
      </div>
    </div>
  </div>
</template>

<script>
    export default {
    name: "App",
    methods: {
       showButtonsDialog() {
           this.$modal.show("dialog", {
           title: "Some Title",
           text:'<VueSignaturePad id="signature" width="100%" height="200px" ref="signaturePad"/>',
           buttons: [
           {
               title: "CANCEL",
               handler: () => {
                   this.$modal.hide("dialog");
               }
           }]
          });
        }
      }
    };    
</script>

What am I doing wrong here?

Thank you

19 Dec
7 months ago

bhavuksuthar started a new conversation Rewrite URL Through .htaccess

I have a legacy project and I am trying to install Laravel in the project. I have added a subfolder in my existing projects www directory and changed the .htaccess to following

RewriteEngine on

# for 2nd project
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?users/(.*)$ /blog/public/index.php/ [L]

# quick links
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/user_files/
RewriteRule ^([^\.\?]+)$        /mod_rewrite_delegator.php?keyword=   [QSA,L]

It works fine for both projects but for my new laravel project the URL looks long and I want to change it to something easy to read. For example, http://myproject.dev/blog/public/index.php/home should be http://myproject.dev/blogOr http://myproject.dev/blog/public/index.php/contact should be http://myproject.dev/blog/contact How can I rewrite the url? Thank you

15 Nov
8 months ago

bhavuksuthar left a reply on Pass CSRF Token With Fileinput Plugin On Delete Url

Thank you for your reply. I just figured it out. The plugin has separate settings for deleteUrl which is ajaxDeleteSettings.

bhavuksuthar started a new conversation Pass CSRF Token With Fileinput Plugin On Delete Url

Hi Everyone

I am trying to use the [Bootstrap File Input plugin]: /http://plugins.krajee.com/file-input/plugin-options#ajaxSettings and upload and edit work fine.

I am having trouble setting up the deleteUrl option for the plugin.