rohan_mhz

rohan_mhz

Member Since 2 Weeks Ago

Experience Points 510
Experience Level 1

4,490 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 2
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

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

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

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

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

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

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

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

14 Jun
3 days ago

rohan_mhz left a reply on Variable To Master Layout File

@martinbean oh thank you, I will try to do it that way.

13 Jun
4 days ago

rohan_mhz started a new conversation Variable To Master Layout File

Can anyone help me with this? I am trying to populate the dropdown menu of the navbar in the layout file. how do I get data to the layout file every time any page is loaded.

rohan_mhz left a reply on Display Specific Images With Captions

@snapey ok, I am using TinyMce to record the data so I had to use {!! !!} to get the exact format that I needed to display it in the page.

rohan_mhz left a reply on Display Specific Images With Captions

@munazzil ok, but I need to get only those images which have captions. Currently, I have stored captions for only 4 images and I have 8 total images. how do I get those 4 images with the captions??

rohan_mhz started a new conversation Retrieve Data From Mapper Table

how do i get needed data using the mapper table?? I have 3 tables

  1. packages
  2. package_tags
  3. package_map_tags

I have assigned foreign keys in mapper table and now I want to retrieve all packages which are related to tag_id 4. I am new to this, can anybody give me some tips on how to achieve this? thank you

rohan_mhz left a reply on Display Specific Images With Captions

right now i am displaying all the incoming images and only some have captions.

 @foreach ($packages as $key => $package)
                
                <div class="carousel-item{{ $key == 0 ? ' active' : '' }}">
              
                    <img class="d-block w-100" src="{{ Storage::disk('local')->url('img/package/' . $package->image) }}">
                    <div class="carousel-caption d-none d-md-block">
                        <div class="container">
                            {!! $package->caption !!}
                            <a class="button-theme" href="{{ route('travel.itinerary', $package->slug) }}">learn more</a>
                        </div>
                    </div>
                </div>
                @endforeach

index.blade.php file

12 Jun
5 days ago

rohan_mhz started a new conversation Display Specific Images With Captions

I want to display only those images in the carousel which have captions and not those which have no captions.

I was thinking of using if function and check if the incoming image has the caption or not, but I don't know how to do it. is there any other way of doing it?

plz, help me cuz I am new to this.

07 Jun
1 week ago

rohan_mhz left a reply on Where Are You All From?

Kathmandu, Nepal

04 Jun
1 week ago

rohan_mhz left a reply on User's Comment On Specific Travel Package

@SERGIU17 - thank you for the tip. I will try this now

rohan_mhz started a new conversation User's Comment On Specific Travel Package

can anyone help me with this? I am new to laravel and know the basics only.

I want to create a comment which is associated with the user who posted it to a specific travel package. How will the database tables look like and how do each table relate to each other?