kiruba

kiruba

Member Since 1 Year Ago

Experience Points 45,740
Experience Level 10

4,260 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 443
Lessons
Completed
Best Reply Awards 2
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

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

27 Nov
6 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.

$request->ip()

Thanks.

26 Nov
6 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
6 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
6 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
6 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
11 months 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/