Member Since 1 Year Ago

Experience Points

2,270 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
Best Reply Awards
Best Reply
  • 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.


    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.


    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.

Level 2
7,730 XP
1 week ago
Activity icon

Replied to Securing Route Used To Populate A Chart

Brilliant - thank you for taking the time to respond!

Activity icon

Replied to DB Use Select To Get Avg And Then Using The OrderBy To Order The Items By The Avg From The Select

This might not be the issue, and perhaps laravel resolves this behind the scenes, but normally with a SQL query there is an order in which certain commands should be issued (this is referred to as order of precedence) as such, for your query, you would normally have select, then the joins, then the group by, then the order by.

Also, you have selected all of the columns from the browsergames table, but have only grouped on the field.

In SQL server at least, you can use a column alias in the order by. Perhaps that isn't the case here. Judging from your error message, perhaps the

OrderBy('avgRating', 'desc') 

should be

Activity icon

Started a new Conversation Securing Route Used To Populate A Chart

Hi (disclaimer, I'm new to web application development - background is in data analytics - I'm trying to build an analytics application here)

I have a route set up to provide JSON data to a chart (I have lots, but will list one as an example). I am using AM charts, and have vue components for each chart that I want in the application.

Because the route is feeding the vue component, i wasn't sure how to secure the route. I have this registered as a GET on web.php.

Route::get('/buildings/summary','Dashboards\[email protected]');

What's the best way to lock this down so only logged in users can access this route? In a perfect world, I would probably want this for internal use only, i.e, the route cannot be accessed in a browser.

namespace App\Http\Controllers\Dashboards;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use DB;
class BuildingsController extends Controller
    public function index()
        return view('dashboards.buildings');
    public function summary()
        $summary_cd = 
        ->where('salesyear', '=', 2018)   
        ->orderBy('sales', 'desc') 
        return response()->json($summary_cd);