MaverickChan

Experience

49,040

29 Best Reply Awards

  • Member Since 1 Year Ago
  • 305 Lessons Completed
  • 0 Favorites

1st August, 2017

MaverickChan left a reply on Vue Do Not "interpret" Javascript • 2 weeks ago

@realtebo my point is , if you wanna use variables in img tag , just put a : before src will do the trick

<img :src="{{ something }}">

29th July, 2017

MaverickChan left a reply on Image Src Won't Update • 3 weeks ago

if you are using chrome , that is chrome's cache bug.

you can add some sort of unique number at the end of your href

such as :

<img :src="your.vue.data + '?' + Math.Random()">

or , someone says , use src and srcset together

17th July, 2017

MaverickChan left a reply on GET Http://localhost:8000/undefined 404 (Not Found) Laravel DropzoneJs • 1 month ago

$location = public_path('gallery/images/' . $filename);

            $file->move($location);

and also , please show some of your view file , the dropzone javascript part.

MaverickChan left a reply on Need To Sort Prodcut By Price ASC And DESC • 1 month ago

you are making things complicated.

one function should only do one thing a time.

you can pass normal data to view files , then in view file , use ajax call to do sorting or anything else.

for those ajax calls , make backend functions , saprately.

MaverickChan left a reply on Need To Sort Prodcut By Price ASC And DESC • 1 month ago

Product::all()->orderBy('price','desc')->get();

asc is the same.

i would use vue.js to add a toggle button.

MaverickChan left a reply on GET Http://localhost:8000/undefined 404 (Not Found) Laravel DropzoneJs • 1 month ago

where is your function name in your controller?

14th July, 2017

MaverickChan left a reply on How To Use DiffForHumans() In Vue • 1 month ago

import a new package called Moment.js in your npm

then in Vue component , you can make method or a computed property

then it will render like cabon did

13th July, 2017

MaverickChan left a reply on Attach Comments To Specific Post When Click Comments Button. • 1 month ago

you can do v-show

set up a checking , if clicked then show the comments

12th July, 2017

MaverickChan left a reply on Fresh Laravel Install, Nothing But White Screen • 1 month ago

it seems you are using laravel on ubuntu or other unix system

you need to change permission of /storage/logs to 777

in fact , i suggest you change the whole storage directory to 777

11th July, 2017

MaverickChan left a reply on Fontawesome With Webpack And Laravel 5.4 With Relative Paths • 1 month ago

my bad , it should be

@import "~font-awesome/scss/font-awesome";

MaverickChan left a reply on Image Not Insert Into Database • 1 month ago

always do validation first

$this->validate($req, [
            'resume' => 'required|mimes:jpg,jpeg,png,bmp'
            ]);

then

$file1 = $req->file('resume');

and , are you intensionly spell extension as extenstion?

MaverickChan left a reply on How To Access Data From Vue/Axios In Laravel Controller • 1 month ago

you need to assign the values of product , for now , the data is null

MaverickChan left a reply on How To Use Npm Package In Laravel 5.4 • 1 month ago

npm install
npm install anything --save

then in bootstrap.js

window.anything = require('anything');

then import or require it in your project

10th July, 2017

MaverickChan left a reply on Vue Component Not Showing • 1 month ago

what does the console say?

you don't need this line :

import Users from './components/Users.vue';

remove it.

and i suggest you use Axios for ajax

MaverickChan left a reply on Vue Component Not Showing • 1 month ago

Vue.component('users', require('./components/users.vue'));

6th July, 2017

MaverickChan left a reply on Fontawesome With Webpack And Laravel 5.4 With Relative Paths • 1 month ago

@import "~/font-awesome/scss/font-awesome.scss"; 
npm run watch

no other needed

5th July, 2017

MaverickChan left a reply on Vue Says My Property Isn't Defined, But I Think It Is...? • 1 month ago

use single file component

and i think data is a reserved word of vue , try changing to

var somedata = blah blah

MaverickChan left a reply on How To Get The Text Of The Selected Option Using Vue ? • 1 month ago

save your data as json , then in vue , parse them

4th July, 2017

MaverickChan left a reply on Vue Do Not "interpret" Javascript • 1 month ago

:src will be magic......

2nd July, 2017

MaverickChan left a reply on How Do I Check Correct Answer For This ? • 1 month ago

input type=checkbox

you are using radio

30th June, 2017

MaverickChan left a reply on How Do I Check Correct Answer For This ? • 1 month ago

no : needed

MaverickChan left a reply on How Do I Check Correct Answer For This ? • 1 month ago

name="options[]"

27th June, 2017

MaverickChan left a reply on Checkbox Model Binding And Default Enable • 1 month ago

check resource/views/Auth/login.php, you should find some answer.

26th June, 2017

MaverickChan left a reply on V-bind Concatenate An Array? • 1 month ago

name="{{param.name}}[]"

maybe

MaverickChan left a reply on [PDOException] SQLSTATE[HY000] [1045] Access Denied For User 'root'@'localhost' (using Password: YES) • 1 month ago

then there is one possibility left : you forgot your password

flush the mysql root password

MaverickChan left a reply on [PDOException] SQLSTATE[HY000] [1045] Access Denied For User 'root'@'localhost' (using Password: YES) • 1 month ago

run

composer dumpautoload

then

php artisan cache:clear

MaverickChan left a reply on Behavior And Scope Of "this" In Vuejs 2 • 1 month ago

you are not giving the whole codes , i am pretty sure you have some logic inside initApp(), if there is a function , this could be an issue.

MaverickChan left a reply on [PDOException] SQLSTATE[HY000] [1045] Access Denied For User 'root'@'localhost' (using Password: YES) • 1 month ago

if you are accessing the site from another computer , it is better way to create a mysql user . sometimes root access is forbidden from outside link , windows case.

25th June, 2017

MaverickChan left a reply on Can't Sign In • 1 month ago

action=

MaverickChan left a reply on Auto-Expanding JSON In FireFox Or Chrome • 1 month ago

JSON Formatter? search chrome

MaverickChan left a reply on How I Can Make A OrWhere Between Two Subquerys? • 1 month ago

something like :

where([[$key,'like','%'.$query.'%'],[$key,'like','%'.$query.'%'],[$key,'like','%'.$query.'%'],[$key,'like','%'.$query.'%']])->get();

23rd June, 2017

MaverickChan left a reply on What Makes Jeffery Way Show His Face In Videos Lately? • 1 month ago

jeff wants to prove that he is not AI , :)

MaverickChan left a reply on How Do I Use Vue Router And Normal Laravel Route Together • 1 month ago

thanks buddies @KNietzsche @topvillas very inspiring

MaverickChan left a reply on How Do I Use Vue Router And Normal Laravel Route Together • 1 month ago

@topvillas actually it's ok now. i wanted to make a spa within a laravel project which has lots of other normal laravel pages .Now i googled , it turns out not possible to let them live together , i tried , it is true.

MaverickChan left a reply on How Do I Use Vue Router And Normal Laravel Route Together • 1 month ago

never mind , i noticed that , it is not possible

MaverickChan left a reply on How Do I Use Vue Router And Normal Laravel Route Together • 1 month ago

@KNietzsche thanks , but that's not what i want .

MaverickChan started a new conversation How Do I Use Vue Router And Normal Laravel Route Together • 1 month ago

i am trying to use Vue Router with a existed lavavel project , it seems they cannot stand together.

MaverickChan left a reply on MethodNotAllowedHttpException • 1 month ago

  1. delete the last line in your route file , you don't need it.

  2. in form try

<form action="{{ route(posts.store) }}" method="POST">
{{ csrf_field() }}


22nd June, 2017

MaverickChan left a reply on How To Use Sweet Alert To StandAlone Class From Vue Js ? • 1 month ago

var swal = require('sweatalert');

then use swal({}) as before you do it

MaverickChan left a reply on Hi Gays! Have A Migratoin Error • 1 month ago

GAYS?Are you serious

21st June, 2017

MaverickChan left a reply on :style="{'box-shadow': BoxShadow}" Is Ignored • 1 month ago

in a vue file , you can use html css directly.....

19th June, 2017

MaverickChan left a reply on No Query Results For Model [App\Article]. • 2 months ago

what is in your Article ?the model file

MaverickChan left a reply on Can Not Run Other Javascripts Insde Vue Components • 2 months ago

animation is ok when using raw javascript , and in Vue it is easier.

MaverickChan left a reply on Can Not Run Other Javascripts Insde Vue Components • 2 months ago

you can use normal bootstrap progressbar class , then pass a data to it , it will work

MaverickChan left a reply on Can Not Run Other Javascripts Insde Vue Components • 2 months ago

var $ = window.jQuery = require('jquery');

before export default

then you can use jquery as normal

MaverickChan left a reply on Can Not Run Other Javascripts Insde Vue Components • 2 months ago

try dataTransitiongoal

i remember in Vue , you should avoid using -

MaverickChan left a reply on Can Not Run Other Javascripts Insde Vue Components • 2 months ago

what does data-transitiongoal mean?

you need to import the js or css file to work.

for example , i am using lity a light box js api to show photos , import it in the bootstrap.js or import in your vue file , it should work.

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.