Member Since 2 Years Ago

India, Tamil Nadu, Tirunelveli

Experience Points

2,320 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.

  • Community Pillar

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

Level 5
22,680 XP
1 month ago
Activity icon

Started a new Conversation Find How Many Number Of Student Logged In Or Not Laravel

Guys iam working with a project its a online exam project for students

this is my example link

website.com/admin website.com/teacher website.com/student

all the three residing in same hosting but different laravel project accessing the same DB.

Now the teacher need to know how many student are in online

i referred in net and saw 2 ways

1) adding a column in user table "last_seen" and to fetch records   -> this access the db usually
2)create a middleware and store all active users on the Cache instead of the DB -> this easy apporach

which way is better? my db has more than 25000 students records. and it will be increased.

i think i cant use the second way as because my project are three different.. am i right?

and i have increased student session time

     'lifetime' => 35791394,

    'expire_on_close' => false,

most of the students use the application in mobile phone. so they wont logout, just they will come out from the browser. how i should handle this?

Kindly some one suggest any idea with any links

in this if i dont need the last seen time. then i think i dont need separate column. if i need last seen time then what shud i do?

my users table column are,


the last 4 columns what sense i kept is, when a student login, in the controller the logged in time and date will be filled and when student log out other 2 will be filled. but most of the student not logging out just closing the browser , so i cant make a condition to check whether he/she is online or not.

kindly some one suggest

3 months ago
Activity icon

Started a new Conversation Save All The Data Into The Db Table After Instamojo Payment Laravel

my project is a school project

in the website i have a registration for for student for different competition

StudentFather mobile
StudentMother mobile
Competition Name
StudentMail Id

The above details are getting from the student

after filling the form student is redirected to another registration-process.php file in that i have table and iam inserting the whole data filled by the student in that table. in the same file i have written instamojo gateway codings


$payload = Array(
   "purpose" => "purpose of the competition,
        "amount" => "myamount",
        "send_email" => true,
        "email" => $email,
         "buyer_name" => $name,
           "phone" => $fmnos,
           "send_sms" => true,
        "redirect_url" => "https://xxxxxxxxx/yyyyyyy/registrationcompleted.php",
         "webhook" => "https://xxxxxxxxx/yyyyyyy//webhooktest.php"

and in my webhooktest.php

if($mac_provided == $mac_calculated){
    if($data['status'] == "Credit"){
          include 'config.php';  
       save the data


whats my problem is after payment instamojo only has the detail of amount, buyer_phone, buyer_name, buyer, payment_id,

i need to save all the data which is filled by the student into my table, with payment id, payment status,amount

how this is possible? if i save before payment i can save all, but unable to save the payment details, if i save it after payment i can save only payment details not other personal details of the student.

kindly some one help to solve this issue status

5 months ago
Activity icon

Replied to 404 Error Usually Occurs In My Application, When Back Button Clicked Or Long Time Inactivity

@snapey @sinnbeck thank you guys.

So if the user has been away for a while and returns, they are not prompted to login just sent HOME

yes yes the above line was exactly happening. actually student may write the exam for 2 hrs or 4 hrs,

so what my client expect to not logout after several minutes so in session i changed it as

'lifetime' => 35791394,

so currently i will change the public const HOME = '/home'; this to public const HOME = '/';

But is this the permanent solution?? and even after 1 or 2 hrs students clicks logout they face 419|page Expired Error to avoid this error only i have increased the life time in session but still this error persist why??

BUT you need to find a reliable way to produce this error so that you know you have fixed it ->so what should i do @snapey

Activity icon

Replied to 404 Error Usually Occurs In My Application, When Back Button Clicked Or Long Time Inactivity

@snapey @sinnbeck

my laravel version is - Laravel Framework 6.18.0

and app\Providers\RouteServiceProvider.php file


namespace App\Providers;

use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Route;

class RouteServiceProvider extends ServiceProvider
     * This namespace is applied to your controller routes.
     * In addition, it is set as the URL generator's root namespace.
     * @var string
    protected $namespace = 'App\Http\Controllers';

     * The path to the "home" route for your application.
     * @var string
    public const HOME = '/home';

     * Define your route model bindings, pattern filters, etc.
     * @return void
    public function boot()


     * Define the routes for the application.
     * @return void
    public function map()



     * Define the "web" routes for the application.
     * These routes all receive session state, CSRF protection, etc.
     * @return void
    protected function mapWebRoutes()

     * Define the "api" routes for the application.
     * These routes are typically stateless.
     * @return void
    protected function mapApiRoutes()

So what should i do now??

Activity icon

Replied to 404 Error Usually Occurs In My Application, When Back Button Clicked Or Long Time Inactivity

@snapey yes iam not clear about valid routes. kindly guide me whats the mistake what i should do now?

till now i get confused that how it changing xyz.com/home

kindly point out whats wrong with me in this portion

Activity icon

Replied to 404 Error Usually Occurs In My Application, When Back Button Clicked Or Long Time Inactivity

@snapey thank you for your response

the student module have only 4 nav bars.

dashboard,   -- xyz.com

exam list,	-xyz.com/ExamList	

 exam summary,   -- xyz.com/ExamSummary

logout   - to logout the application

but i dont know how the url changes to xyz.com/home so do i need to write something for this?? then where i should write what changes i have to do?

but you don't say if /home is a valid Route? -> if this is the reason then in route what i should write

Route::get('/', '[email protected]')->name('home'); this is the reason for that error??

Activity icon

Started a new Conversation 404 Error Usually Occurs In My Application, When Back Button Clicked Or Long Time Inactivity

iam working with a online exam management project.

xyz.com is my application. i have a login form, students, and staff members will login and do their work. everything works fine. But iam facing a problem that, usually student face a 404 error| not found error.

iam not sure when students get these error. what i said to the students is to not clearing the cache, incorrect logout all these gives 404 error. but even they click the back button or refresh also they get this error

this is my route file


Route::get('logout', '\App\Http\Controllers\Auth\[email protected]');

Route::get('/', '[email protected]')->name('home');

this is my session.php

 'driver' => env('SESSION_DRIVER', 'file'),

  'lifetime' => 35791394,  

  'expire_on_close' => false,

  'encrypt' => false,

  'files' => storage_path('framework/sessions'),

  'connection' => env('SESSION_CONNECTION', null),

 'table' => 'sessions',

    'store' => env('SESSION_STORE', null),

say for example xyz.com/ExamPage if for any reason they click back or something the url chage to

xyz.com/home and then it shows a 404 error|not found

student use the application in mobile, so they may not properly logout the application.

what my expectation is whatever the 404 error should not come.

this is homeController


namespace App\Http\Controllers;

use Session;

class HomeController extends Controller
     * Create a new controller instance.
     * @return void
    public function __construct()

     * Show the application dashboard.
     * @return \Illuminate\Contracts\Support\Renderable
    public function index()
        return view('dashboard');

i dont know where i should change this, and what to do , even 419|page expired error also comes usually. all this is student login only. so i though the improper logout causes this error. is this right??

what i should do to stop this 404 error. kindly some one help