MaverickChan

MaverickChan

Member Since 4 Years Ago

Experience Points
123,610
Total
Experience

1,390 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
819
Lessons
Completed
Best Reply Awards
53
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.

Level 25
123,610 XP
May
28
3 days ago
Activity icon

Replied to Laravel 5 - Copied Entire Project To Sub-Folder | 404 Error

maybe , you can change the port , like domain.com:8080 to run laravel , 80 to run original

May
17
2 weeks ago
Activity icon

Replied to Unable To Display Image In Vue Component Form Storage Of Laravel

store images in the public folder is fine , you don't have to protect image files , because they are meant to be seen.

May
12
2 weeks ago
Activity icon

Replied to Form Submit Disable Scrollbar "vue.js"

@takebrown inside your submit function ,you can add a class to the div , like overflow-hidden , after submitted , remove the class.

May
05
3 weeks ago
Activity icon

Replied to Vue Component Not Displaying In Laravel

make a hard refresh if you are using chrome. Press and hold refresh button when open devtool mode, choose clear cache and refresh , you may good to go

May
04
3 weeks ago
Activity icon

Awarded Best Reply on How To Convert A Jquery Datepicker To Vuejs Component?

something like:

import datepicker from 'datepicker' //import

// inside export default

mounted () {

    $.('.yourclassname').datepicker() //like normal jquery usage

}

but , be sure jquery and $ is available


window.jQuery = window.$ = require('jQeuery')

Apr
28
1 month ago
Activity icon

Replied to [Vue Warn]: Error In Render: "TypeError: _vm.users Is Undefined"

<tr v-for="user in users" :key="user.id">
Apr
27
1 month ago
Activity icon

Replied to Passport VueJS Components Not Working

glad i can help , please mark it solved

Activity icon

Replied to Passport VueJS Components Not Working

php artisan ui vue
npm install
npm run watch
Apr
23
1 month ago
Activity icon

Replied to Update Input Value With Data Variable Vue Js

card is outside the scope, you cannot use this on card which means , you never get a chance to create an element , so you never select one.

Activity icon

Replied to Update Input Value With Data Variable Vue Js

if you can show us the whole code , maybe we could help

Apr
22
1 month ago
Activity icon

Replied to Trying To Get Data But It's Amazing!!

$todo = new Todo;
    $todo->fetchTodo();
header('Content-Type: application/json');
return json_encode($todo);
Activity icon

Replied to Update Input Value With Data Variable Vue Js

two way binding , use v-model

Apr
21
1 month ago
Activity icon

Replied to Trying To Get Data But It's Amazing!!

return data should be json format for vue to decode

Apr
10
1 month ago
Activity icon

Replied to What Is The Best Way To Deploy A Laravel Project With Vue.js SPA

you can deploy you spa along side with your laravel backend server laravel shipped with a built-in vue support system , you can use that or , deploy in another server

Apr
04
1 month ago
Activity icon

Replied to Vue Js Attribute Binding.

because it is an atrribute ......

Apr
03
1 month ago
Apr
01
1 month ago
Activity icon

Replied to Using Sanctum With A Vue SPA

if you have put this in kernel.php

use Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful;

in Session.php did you change to file?

put these 3 lines in you front end vue app.js or whatever you called it

window.axios = require('axios');
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
window.axios.defaults.withCredentials = true;

and , i really don't understand why you have a file called env.development and what does it do when you change it ?

Activity icon

Replied to Invalid Prop: Expected Number With Value NaN

maybe

value: Number,

just a guess

Activity icon

Replied to Invalid Prop: Expected Number With Value NaN

maybe try this

value: [Number,String],
Mar
30
2 months ago
Activity icon

Replied to Vuejs And Page Refresh On <router-link> Click

what do you mean you wanna a page refresh AFTER you clicked a router-link? It is not possible to refresh the original page , because you have been sent to another place

Mar
24
2 months ago
Activity icon

Replied to Passport CreateToken Vs Oauth/token

now you can use laravel sanctum , it is much easier using , it is a compact passport in my opinion with less setup.

Mar
23
2 months ago
Activity icon

Replied to Image Storage Laravel

what is your server OS? if it is a linux system , you might need to change the permissions.

Mar
22
2 months ago
Activity icon

Replied to How To Get First Letter Of First & Last Name

i strongly advise you do this in php backend , in model , you can add an attribute then in vue you can retrieve it , it is much easier

Activity icon

Replied to Vue-route And Laravel

because laravel's web route will take over all route redirect. if you want to use vue-router as a spa handler you need to do following in routes/web.php

Route::any('/{any}', function () {
    return view('welcome');    
})->where([ 'any' => '.*' ]);

then let routes/api.php handler all the backend work

or , go deeper , use regex to specify which route should be handled in laravel , else in vue-router

Mar
20
2 months ago
Activity icon

Replied to Setup In Ubuntu Only Shows Index.php As Text

the directory should be the same try this

<VirtualHost *:80>
        DocumentRoot "/var/www/html/okr/public"
        ServerName localhost
        <Directory /var/www/html/okr/public>
                Options FollowSymLinks Multiviews
                MultiviewsMatch Any
                AllowOverride All
                Require all granted
        </Directory>
</VirtualHost>

if this still not work , you should cheek your apache conf file , make sure php enabled

Activity icon

Replied to Setup In Ubuntu Only Shows Index.php As Text

add require all granted ?

Mar
17
2 months ago
Activity icon

Replied to 'v-for' With 'v-if' Vuejs/laravel

in my opion , you need to keep frontend as clean as possible , all the query and filter should be done at backend

Activity icon

Replied to 'v-for' With 'v-if' Vuejs/laravel

use v-for and v-if together could cause unexpected problem , it is not suggested according to the official document.

maybe wrap v-if in another level element ,or do it in method or filter

Mar
16
2 months ago
Activity icon

Replied to Laravel 6 - Import FontAwesome SASS Not Displaying

run

npm install fontawesome --save

first, then

npm run dev

you are using webpack way to import packages. if you copy and put into sass fold , move it to the public/css fold , then import using traditional way inside html head tag

Mar
15
2 months ago
Activity icon

Replied to CRUD

axios.get post put delete ,that simple.

Mar
14
2 months ago
Activity icon

Replied to Laravel Airlock Served On Valet Server

ok, i would give it a try. thanks for the tip

Activity icon

Started a new Conversation Laravel Airlock Served On Valet Server

is it possible ---for testing purpose ---- to have airlock running on a valet server?

I just notice that most of the tutorials are serving on localhost or 127.0.0.1 running php artisan serve.

or may i should use passport instead

Mar
01
2 months ago
Activity icon

Awarded Best Reply on Vue And VueRouter Using Laravel As A Backend

Route::any('/{any}', function () {

    return view('welcome');
    
})->where([ 'any' => '.*' ]);
Activity icon

Replied to Vue And VueRouter Using Laravel As A Backend

Route::any('/{any}', function () {

    return view('welcome');
    
})->where([ 'any' => '.*' ]);
Feb
12
3 months ago
Activity icon

Replied to Image Intervention Not Doing Anything

on which platform?

Feb
02
3 months ago
Activity icon

Replied to Vue Not Render When Using Http://localhost/my_site

because you did not define the route. you need to add /my_site in your routes sector

also , in your web.php try this:


Route::any('/{any}', function () {

    return view('welcome');
    
})->where([ 'any' => '.*' ]);
Jan
16
4 months ago
Activity icon

Replied to Getting Route To Work With Vue

@pllaguno here is the Vue Doc explained everything . Vue's doc is your best friend

props

Jan
15
4 months ago
Activity icon

Awarded Best Reply on Getting Route To Work With Vue

<filter-bar :route="route"></filter-bar>

you don't need this

Activity icon

Replied to Getting Route To Work With Vue

<button class="btn btn-secondary" @click.prevent="createNew(route)">Nuevo Expediente</button>

no this here too

remember in template expressions don't need this

Jan
14
4 months ago
Activity icon

Replied to Getting Route To Work With Vue

<filter-bar :route="route"></filter-bar>

you don't need this

Jan
11
4 months ago
Activity icon

Replied to Access Props Inside Computed

try array push

Jan
06
4 months ago
Activity icon

Replied to Close On Click Outside Element In Vue

you can't control click once or twice , in your case maybe ok , but , if you click somewhere important after onblur, that will be no time left for you to cancel

Activity icon

Replied to Close On Click Outside Element In Vue

don't use onBlur , it is not accurate. you can create a method to determine if click outside, javascript has a function called closest() .

if you want , you can create a custom vue plugin then you can use globally

clickOutSide (e) {

                if (e.target.closest('.yourModalClass')) {

                    return 

                } else {
            
                //do something
            }
}
Activity icon

Replied to Can't Use Composer On MacOS Catalina

need sudo before move

Jan
05
4 months ago