adeguntoro

adeguntoro

Member Since 11 Months Ago

Experience Points
470
Total
Experience

4,530 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
1
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
470 XP
May
24
1 week ago
Activity icon

Replied to Laravel Prefix Route Not Found

Still no luck.

May
23
1 week ago
Activity icon

Started a new Conversation Laravel Prefix Route Not Found

I have 2 project, one is using Laravel 6.12.0 and the other is 7.12.0. After installing Laravel, i copy simpel example about prefix routing from laravel website. Lara6 show error 404, while lara7 success. My project on Lara6 80% almost done. But why this prefix route show me error 404 ? This is the code

Route::prefix('admin')->group(function () {
    Route::get('users', function () {
        Echo 'Matches The "/admin/users" URL';
    });
});
Mar
01
2 months ago
Activity icon

Started a new Conversation How To Redirect User With Pagination Button From Index To Another Blade File

my default view is index.blade.php, how can i redirect user from index.blade.php to next-pagination.blade.php when user click "next" or "back" button ? this is current code. The reason i want to change to next-pagination.blade.php because index and next-pagination have different layout design. i try to use withpath, but i confuse how to use it properly, like how can i pass my data from index to custom URI and then to another blade file.

//Article controller
$posts = Post::orderBy('created_at', 'desc')->simplepaginate(5);
return view('index.index', compact('posts'));
//Blade view
@foreach($posts as $post)
<div class="blog-post">
    <h3 class="blog-post-title"><a href="/{{$post->categori}}/{{$post->slug_url}}">{{ $post->title }}</a></h3>
</div>
@endforeach
{{ $posts->links('index.pagination') }}
//custom pagination button pagination.blade.view
@if ($paginator->hasPages())
    <nav class="blog-pagination">
        @if ($paginator->onFirstPage())
            <a class="btn btn-outline-secondary disabled" href="#" aria-disabled="true">Back</a>
        @else
             <a class="btn btn-outline-primary" href="{{ $paginator->previousPageUrl() }}">Back</a>
        @endif

        @if ($paginator->hasMorePages())
            <a class="btn btn-outline-primary" href="{{ $paginator->nextPageUrl() }}">Next</a>
        @else
            <span class="btn btn-outline-secondary disabled" aria-disabled="true" href="#" >Next</span>
        @endif
        
    </nav>
@endif
//index folder
-- index.blade.php
-- pagination.blade.php
-- next-pagination.blade.php

Feb
13
3 months ago
Activity icon

Started a new Conversation How To Access Json Column In Laravel

i edit laravel default user migration and i add meta column, and this meta column is where i save my data in json format. But now i'm bit confuse how to access this column. I use standar eloquen to get data from database

$website = User::find(1);
return view('website.index')->with('website',($website));

then in my blade file, i try this

{{ $website->meta->gender }}

and it give me error

Trying to get property 'gender' of non-object

i also try another method from stackoverflow (https://stackoverflow.com/questions/30073065/laravel-how-do-i-parse-this-json-data-in-view-blade) :

$website = User::find(1);
return view('website.index')->with('website', json_decode($website, true));

//blade file
@foreach($website->meta as $member)
    gender: {{ $member['gender'] }}
@endforeach

but also it give me error

Array to string conversion 

and this is my current output if i use return view('my.blade, compact('mydata'))

///{!! $website !!}

email_verified_at: "2020-02-13 12:22:56",
status: "1",
meta: {
gender: "Male",
country: "Antarctica (the territory South of 60 deg S)",
biodata: "The Dormouse had closed its eyes again.",
address: "11481 Kelsie Dale Port Humberto, SC 94117-0111",
parents: {
mother: "Miss Juliana Williamson",
father: "Dell Franecki",
kids: {
number1: "Waldo Schiller",
number2: "Angelita Smith",
number3: "Ladarius Witting"
}
},
skills: [
"JavaScript",
"VueJS"
]
},

and i already cast my meta as array. So, how can i access my json column in laravel ?