MaverickChan

Member Since 4 Years Ago

Experience Points
133,590
Total
Experience

1,410 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
888
Lessons
Completed
Best Reply Awards
56
Best Reply
Awards
  • 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.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    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 27
133,590 XP
Apr
06
1 week ago
Activity icon

Replied to Images URL Not Working

what operating system are you using? If it is a linux system , you might encounter that due to permission problem

Mar
04
1 month ago
Activity icon

Started a new Conversation Install Through Docker Failed. Says: "docker: Invalid Reference Format."

Got a new machine and decide to install Laravel through Docker on Mac.

running curl -s https://laravel.build/newApp | bash always get a message :

docker: invalid reference format.

Why ? macOS Big Sur 11.2.2 fresh new

Anyone has this problem either?

Feb
07
2 months ago
Activity icon

Replied to Setting Up Laravel On A M1 MacBook?

HomeBrew has updated to 3.0 and it is compatible with M1 silicon mac now. Try reinstall Homebrew and i think it will be fine as before. (i don't have M1 mac so i didn't test)

But , you can also use built-in php and apache to setup a dev env, not too hard

Feb
06
2 months ago
Activity icon

Replied to Vue Report A Change

in this SIMPLE case , i really think it is fine to use $parent.

Activity icon

Awarded Best Reply on Undefined Is Not An Object (evaluating 'this.lists[id].points.length')

you can get the index by using a function called indexOf

//you element pushed to the array
var newItem = { 
	id: 100,
	title: 'new title'
}
this.list.push(newItem)

console.log(this.lists.indexOf(newItem))

now you can get the correct index and use this.lists[index]

Or , you can use lodash , i think there is a function , you can check the doc

Activity icon

Replied to Undefined Is Not An Object (evaluating 'this.lists[id].points.length')

you can get the index by using a function called indexOf

//you element pushed to the array
var newItem = { 
	id: 100,
	title: 'new title'
}
this.list.push(newItem)

console.log(this.lists.indexOf(newItem))

now you can get the correct index and use this.lists[index]

Or , you can use lodash , i think there is a function , you can check the doc

Activity icon

Replied to Vue Report A Change

as you do , you pass routeStatus as property to the child component , It will not change.

the logic should be inside the child component

//child componet

mounted () {
	this.$parent.routeStatus = false
}

this only works you have one child component loaded.

Activity icon

Replied to Undefined Is Not An Object (evaluating 'this.lists[id].points.length')

because the id is not the index of the array.

So if you are using this.lists[id] , and the id is larger than the length of the array , you will get a undefined

I would say , if you have a form , you should define a data to store all the latest input . When you successfully get a 200 response from server , you could just call the data to display it.

Activity icon

Replied to Vue Js Router Clicked Then Update Component

what do you mean click to update component

which component? the product component or the whole spa ?

Jan
31
2 months ago
Activity icon

Replied to Axios Header For Authorization

import axios from 'axios'

---
//in some method
var config = {
	headers: {
		Authorization: 'Bearer ' + jwtToken
	}
}

axios.get(yourURL,config)
	.then(response => {
				// do stuff
			}
	.catch(error => {
		//catch errors
})


Jan
30
2 months ago
Activity icon

Replied to VUE Is Regret.

oh! how silly i am .....😝

Jan
29
2 months ago
Activity icon

Replied to VUE Is Regret.

lots lots of famous app or website is using VUE , Check out Pornhub.com :) this is the funniest thread i ever found on laracasts. Jeffery should allow us use emoji here ,hahahahha

Activity icon

Replied to Vue Js Router Clicked Then Update Component

show some routes.js file content please

Dec
14
3 months ago
Activity icon

Replied to WARNING In ./resources/js/app.js :"export 'VueRouter' Was Not Found In 'vue-router'

in your routes.js , put

import VueRouter from 'vue-router'

at the top of the file

then put

export default new VueRouter({
    routes,
    mode: 'history'
})

at the end of the file , assuming you have a routes array

in app.js change to

import router from './routes'
const app = new Vue({
    el: '#app',
    router: router,
});
Nov
23
4 months ago
Activity icon

Started a new Conversation Using Tailwindcss 2.0 In A Laravel8 Project

Finally i figure out how to install Tailwindcss 2.0 in a Laravel 8 project. The offical document is not so clear.

1 run install command

npm install tailwindcss postcss autoprefixer

1 - a Put the directives in app.css located in /resources/css/

@tailwind base;
@tailwind components;
@tailwind utilities;

2 create a file called postcss.config.js under the root directory of your project, and make the file like this

module.exports = {
  plugins: {
    tailwindcss: {},
    autoprefixer: {},
  }
}

3 the most tricky part is , you have to upgrade laravel-mix to 6.0, in your package.json file change laravel-mix line to

"laravel-mix": "^6.0.0-beta.14",

4 run

npm install

5 run

npm run dev
Activity icon

Replied to How To Install Tailwindcss 2 In A Fresh Laravel 8 Project?

one more thing, the document says we need a file called postcss.config.js or there is a key in package.json, but , none of those exists , do i have to create it manually ? or just jump to the Using with Preprocessors part? That really confused me.

Nov
22
4 months ago
Activity icon

Started a new Conversation How To Install Tailwindcss 2 In A Fresh Laravel 8 Project?

Tailwindcss just released version 2 , i have trouble install it for a new laravel 8 project . The way that install tailwindcss for webpack is totally changed.