kiruba

kiruba

Member Since 1 Year Ago

Experience Points 53,640
Experience Level 11

1,360 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 522
Lessons
Completed
Best Reply Awards 2
Best Reply
Awards
  • 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.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    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.

27 Nov
8 months ago

kiruba left a reply on MAIL_PORT In .env File Ignored

Your configuration may have been cached. Try...

php artisan config:clear
//Or
php artisan config:cache

kiruba left a reply on Verify Password Is The Same , And Update It .

@MURILO - Both are same. bcrypt() is just a helper function to hash::make() https://laravel.com/docs/5.7/helpers#method-bcrypt

Thanks.

kiruba left a reply on Laravel Maintenance Mode

@codingprogress Check the incoming ip from request and add it to the allowed flag.

dd($request->ip())

Thanks.

26 Nov
8 months ago

kiruba left a reply on Laravel Maintenance Mode

Checkout the documentation. You can allow specific ip addresses on maintenance mode. https://laravel.com/docs/5.7/configuration#maintenance-mode

get your public ip from here.. https://www.whatismyip.com/

Eg:

php artisan down --allow=122.251.11.22

Thanks.

kiruba left a reply on Get Data Without Page Refresh

On PostForm.vue file, on post method try this.

 post(e){
    e.preventDefault(e)
    axios.post('/post-data',{body:this.body})
        .then((response)=>{
            this.$emit('postAdded', {body: this.body}) //This line changed
        //Or get it from response this.$emit('postAdded', response.data) 
                this.body=''
          });
 }

Thanks.

kiruba left a reply on Roles And Permission Question

Yes both will work. Here is a tutorial for spatie/laravel-permission

https://www.youtube.com/watch?v=zIgYJlu03bI

Thanks.

kiruba left a reply on Best Practice To Use Js With Laravel

Normally you would 'npm install' the package, this will add an entry on your package.json then import it on your main.js file use it.

This is a vue js example. Importing and using the plugin should be somewhat similar to this. https://laracasts.com/series/learn-vue-2-step-by-step/episodes/34

I have not checked this code, but should be similar to this. Main.js file

import hljs from 'highlight.js';
window.hljs = hljs;

//OnPageReady initiate the plugin and use it.

Thanks.

25 Nov
8 months ago

kiruba left a reply on Verify Password Is The Same , And Update It .

Please go through this documentation regarding this. https://laravel.com/docs/5.7/authentication#the-user-provider-contract https://laravel.com/docs/5.7/hashing

if (Hash::check($request['password'], $user->getAuthPassword() )) {
    // The passwords match...
}

Thanks.

20 Nov
9 months ago

kiruba left a reply on What Is The Efficient Way To Store Config Option?

Hope this video will give some idea. You can combine with Cache https://laracasts.com/lessons/managing-mass-user-settings

Thanks.

kiruba left a reply on Where Are You All From?

Colombo, Srilanka.

kiruba left a reply on Login API

I am not an expert on this topic, but will give some input. The login is to give access to the system. Any autherization you can do it using a middleware.

Create a middleware called MustBeAnActiveUser and hook it to the relevent api routes(Except the login). In the handle method check the state of the authenticated user. return unauthorized, 401 if the user is not active.

Thanks.

19 Nov
9 months ago

kiruba left a reply on Email Verification

Please consider going through this documentation. It is simple. Hope you are using laravel 5.7 https://laravel.com/docs/5.7/verification

If you are customizing register function you have to fire an event after the user is created. Something like this

use Illuminate\Auth\Events\Registered;

event(new Registered($user));

Thanks.

11 Jul
1 year ago

kiruba left a reply on Animation On Scroll - Just Discovered AOS Library

Nice one. thanks! I guess Jeffrey uses this library https://mynameismatthieu.com/WOW/