Member Since 8 Months Ago

Experience Points

4,790 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 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.


    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.


    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
210 XP
3 months ago
Activity icon

Replied to Detect API Request In Laravel

Sorry for the late response. Will check and let you know.

3 months ago
Activity icon

Replied to Remove Public Url In Laravel 6

Here is what I do

Cut and paste the

index.php and .htaccess

files from public to root folder and then change these lines in index.php like below

require __DIR__.'/vendor/autoload.php';
$app = require_once __DIR__.'/bootstrap/app.php';

finally my htaccess

#php_flag opcache.enable Off
<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews

    RewriteEngine On

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/$ / [L,R=301]
    #RewriteBase /laravel/

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
<FilesMatch ".env">
    Order allow,deny
    Deny from all

Hope this helps.

Activity icon

Replied to Returning Individual Auth::user Data

Have you tried ?

$id = Auth::user()->id;

and dont forget to add

use Auth;

Activity icon

Replied to How To Calculate Average Of Rating In Blade File

There are two ways to do it.

First get the count of array elements.

M1: Get the sum value of rating from foreach loop.

$sum = 0;
 foreach($your_array as $value){
            $sum += $value;
 $avg = $sum / count($your_array);

M2: use array_sum method to find the sum.

$avg = array_sum($your_array) / count($your_array);

M1/M2 will depend upon your array structure. Finally run

if {
	conditional block
else {
        conditional block

condition according to the average value.

3 months ago
Activity icon

Replied to Problem In Update User On Unique Email

I think you need to remove that unique validation from email type. Since you're updating one user then just find the user id by email and if returns any value then update else throw some error.

Activity icon

Started a new Conversation Detect API Request In Laravel

Hello, I'm working in a application where I'm using same API for desktop and android app in order to reuse the code. For an example There is an create user form in desktop website as well as in the app. So I have written one API to submit the form data, which is working perfectly. But my main requirement is to get the origin request for that form submit/post API. I have tried

jenssegers/agent package

, so far I am able to detect weather its mobile or desktop. Is there any other way to detect that the post request coming from the app end?

An extra parameter will do the job for sure, but I would like to avoid it. Any help is appreciated.