madprabh

Member Since 3 Years Ago

Experience Points
10,720
Total
Experience

4,280 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
89
Lessons
Completed
Best Reply Awards
1
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.

  • Community Pillar

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

Level 3
10,720 XP
Nov
23
1 month ago
Activity icon

Started a new Conversation Navigate To Certain Parts Of The Page Using # In URL In VueJS

Hello people,

I am using VueJS with Laravel and I wanted to know if there is a way to navigate to parts of a vue component using the hash in the URL.

For example,

https://www.example.com/conversations/#response223 should take me to the relevant DIv on that component?

Does anyone have an example of how this can work in VueJS with laravel?

Best, Madhu

Nov
14
2 months ago
Activity icon

Replied to Basic Question: How Do I Pass Value From Controller To Model?

@snapey Sorry, wasn't aware of that. I edited just now. Thanks for letting me know.

Activity icon

Started a new Conversation Basic Question: How Do I Pass Value From Controller To Model?

Hey Everyone,

I am trying to pass an id from controller to a model and I am doing something like this in my controller

$notification->associated_conversation_response_properties=$notification->conversation_response_properties($collaborator->id); //$collaborator->id if what I want to pass to my model method which is associated_conversation_properties and accepts the parameter passed

Like so,

public function associated_conversation_properties($user_id=1)
{
    	if ($user_id==1)
    	{

    		return $this->hasOne(conversation_properties::class, 'conversation_id','conversation_id')->where('user_id',\Auth::id());
        }
    	else
    	{
    		return $this->hasOne(conversation_properties::class, 'conversation_id','conversation_id')->where('user_id',$user_id);
    	}
        
 }

What am I doing wrong? and Is this the right way to go about this?

Aug
15
5 months ago
Activity icon

Replied to How To Ensure New App.js Is Downloaded By Browser

Thanks a lot @sinnbeck! I appreciate the help and this is exactly what I was looking for.

Activity icon

Started a new Conversation How To Ensure New App.js Is Downloaded By Browser

Hey Folks,

I have a rather basic question.

So I use npm to build my application and to deploy it on the production server. Obviously it creates app.js that bundles all my Vue components. When I make changes to my components a new app.js is created but my browser has already cached the previous one.

How do I ensure that new app.js is downloaded by the browser? Some kind of query string appending is needed?

Any tips on this one will help me a lot.

Best, Madhu

Jul
21
6 months ago
Activity icon

Started a new Conversation Preventing Component Re-rendering On Route Changes

Hi Folks,

I am developing a VUE SPA using laravel and I have several different components that are mounted. For many routes, I have the same components that are mounted for example the left and right sidebar remains the same.

How can I prevent these components from re-rendering every time I change the route. For example

https://example.com/conversations/223 https://example.com/conversations/224

Both these routes are the same but show a different conversation. I don't want the common components to remount and fetch data every time I change routes that use the same common components.

Best, Madhu

Jul
20
6 months ago
Activity icon

Started a new Conversation Structuring A VUE SPA - Avoiding Component Remount

Hey Folks,

I have a rather basic question. How do we structure vue components so that the same components don't get mounted each time we invoke a URL.

For example,

I am developing a VUE SPA, that has a basic HTML skeleton and each feature on the page is a component.

  1. NavBar Component
  2. Main area component
  3. Recent Activity component (which is the sidebar on the right)

Each time I am going to a URL, all these 3 components mount for example /conversations /conversations/3

A recent Activity component is required in all these pages but it ends up remounting.

How do I make sure that it doesn't remount on every URL since its essentially the same component with the same data?

Best, Madhu