MaverickChan

Experience

66,700

34 Best Reply Awards

  • Member Since 2 Years Ago
  • 434 Lessons Completed
  • 0 Favorites

15th April, 2018

MaverickChan left a reply on Display Pre Loader When Untill App Fully Initilize • 1 week ago

if (document.readyState == 'complete') {

                    this.showLoading = false;

                }

19th March, 2018

MaverickChan left a reply on Signout Route Won't Work • 1 month ago

signout should be a post request

12th March, 2018

MaverickChan left a reply on V-on:click="reverseMessage' Is Not Working • 1 month ago

data must be returned , or it won't refresh when you change them.

try :

data () {

    return {

        message : 'your word ',
    
    }

}

11th March, 2018

MaverickChan left a reply on I Get 405 (Method Not Allowed) Error On A DELETE Ajax Request • 1 month ago

in your form , html only accept get and post method , you need to pass a hidden input

<input type="hidden" value="delete" name="_method" />

10th March, 2018

MaverickChan left a reply on Issue With Npm Run Watch • 1 month ago

run npm install first

8th March, 2018

MaverickChan left a reply on Calling My API From My Web Site • 1 month ago

your api website should provide json format data , right?

then in your local controller , try

$data = file_get_contents('http://yourAPIwebsiteAddress');

use axios visit your local address.

because axios has laravel cross-site token protection , you cannot visit your api site directly , you have to remove the javascript csrf token , which is not safe for your local site.

7th March, 2018

MaverickChan left a reply on Getting Value From Vue Component Into HTML. • 1 month ago

don't really understand ...

maybe setup 2 component , the parent component is responsible for rendering , then the child component could fire an event to communicate with parent .

6th March, 2018

MaverickChan left a reply on Font Awesome In With Laravel Mix • 1 month ago

@mouhcinemahfoud

should be

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

@ejdelmonico

you don't have to copy , laravel mix will do it for you

5th March, 2018

MaverickChan left a reply on Simple AJAX Call To Update A Table With The Content Coming From A MySQL Table • 1 month ago

contenteditable the table td , on focus update your input , on blur update to the database , done.

MaverickChan left a reply on How To Get All Data From Db? • 1 month ago

@alex_storm ok , i kind understand what you what now .

1st , get all rows names of your table

$columns = Schema::getColumnListing('table');

2nd , iterate the columns

foreach ($columns as $columns) {

'your connection and table '->select($columns)->get();

}

MaverickChan left a reply on How To Get All Data From Db? • 1 month ago

retrieve huge data could cause server problem.

if you insist , try

->get();

MaverickChan left a reply on Not Able To Edit .env File • 1 month ago

what is your dev environment ? Which editor are you using?

4th March, 2018

MaverickChan left a reply on How To Create An Editable Table With Vue.js • 1 month ago

it is really not that hard .

1 . make the td conetenteditable

2 . on td , add 2 event listener , @blur @focus

3 . when focus , read data and edit content , when blur , save back to database.

3rd March, 2018

MaverickChan left a reply on Display Image In Vue.js • 1 month ago

@afoysal

  1. store your image FILE at some path on your server.

2.store your image PATH into database.

MaverickChan left a reply on Display Image In Vue.js • 1 month ago

MaverickChan left a reply on Can Anyone Spot My Error (Where Clauses Not Firing) • 1 month ago

if i guess right

$query1->where([['run_id', $runid],['year_id',$yearid]]);

2nd March, 2018

MaverickChan left a reply on Updating Array Saves Back As Object • 1 month ago

add (object) before the variable

25th February, 2018

MaverickChan left a reply on After Adding Vuejs File Select2 Conflict • 2 months ago

before export default ,

do

var $ = require('jquery');

assuming you are using webpack and laravel , you can use npm to compile down all the js files

24th February, 2018

MaverickChan left a reply on How To Show Random Posts Using SortBy()? • 2 months ago

@Cronix No Offense Either , if you can retrieve all data , why not filter it first then use ->random() function ?

you can change ->get() to any of your method . That was just an example.

i am giving a useful way , and of course , a good way .

MaverickChan left a reply on How To Show Random Posts Using SortBy()? • 2 months ago

@larpajd12

Laravel has a helper function called random() , you can chain it after your collection.

$randomUser = DB::table('users')->get()->random();

also , you can get random multiple records.

$randomUser = DB::table('users')->get()->random(12); //this will get 12 random records

MaverickChan left a reply on Laravel Error During Migration • 2 months ago

maybe a simple miss-spell

could be : created_at , you write: creat ed_at

MaverickChan left a reply on Vue Model Does Not Working • 2 months ago

you are missing :

:name="{{ pick_name }}"

23rd February, 2018

MaverickChan left a reply on How Do I Upload Multiple Photos In Laravel. • 2 months ago

@andremac96 show some error message so we can help you

21st February, 2018

MaverickChan left a reply on JSON Response With Backslashes • 2 months ago

add another \ before a \

20th February, 2018

MaverickChan left a reply on How To Solve This Data Update Error In Laravel • 2 months ago

@kistlak your method should be patch or put , in route and in the form.

MaverickChan left a reply on How To Solve This Data Update Error In Laravel • 2 months ago

try

<td> <a href="{{  url('/edit/'. $value->id) }}"><input type="submit" name="update" value="Update" class="btn-primary"></a> </td>

and do

php artisan cache:clear

php artisan view:clear

16th February, 2018

MaverickChan left a reply on Works But Loads Of Errors • 2 months ago

first , you don't need to put this before axios.

2nd, you don't have to declare tag in your data. delete it then see if it is working

MaverickChan left a reply on How Can I Access A Parent Method From Child Component In Vue.js? • 2 months ago

@chrislentz


this.$parent.MethodName();

MaverickChan left a reply on Trying To Create A Modal Window • 2 months ago

@Tarasovych notice you are using bootsrapVue , but the default Vue.js is using none css template. Maybe there is some conflict css name causing this problem.

check and change.

14th February, 2018

MaverickChan left a reply on Trying To Create A Modal Window • 2 months ago

Try reading the doc of Vue.js , which is the most helpful doc of all. VUE Modal.

13th February, 2018

MaverickChan left a reply on Laravel 5.6, Bootstrap 4 + Template, JQuery And Vue • 2 months ago

have your install node.js and npm?

need to compile css and js before you go

MaverickChan left a reply on V-for - Issues • 2 months ago

show some of your controller

or if there is any error display in your console?

10th February, 2018

MaverickChan left a reply on HOw To Post Ajax To Controller • 2 months ago

@Cheers02 please show me your route file.

9th February, 2018

MaverickChan left a reply on HOw To Post Ajax To Controller • 2 months ago

your url in ajax is wrong.

should be


'/postId'

no . needed

28th January, 2018

MaverickChan left a reply on Laravel: Fetch Data Inside A Vue Component • 2 months ago

@wilk_randall that is what i am talking about : props data type is very important , should be very carefully when sending props to the component.

MaverickChan left a reply on Laravel: Fetch Data Inside A Vue Component • 2 months ago

@wilk_randall sometimes , integer and string could be confused.

27th January, 2018

MaverickChan left a reply on Laravel: Fetch Data Inside A Vue Component • 2 months ago

first , change data to another name in your blade file .

2nd , remove the : before data

3rd , magic.

18th January, 2018

MaverickChan left a reply on Repositories • 3 months ago

@omarsow94 did you copy your files elsewhere or just created them locally? And Linux is case sensitive , the file name should be very accurate.

MaverickChan left a reply on Repositories • 3 months ago

@omarsow94 try writing a new file , copy the content from the old .

17th January, 2018

MaverickChan left a reply on Repositories • 3 months ago

@omarsow94 if you are using linux or mac , check file ownership when you copy it from elsewhere.

MaverickChan left a reply on Repositories • 3 months ago

conversations or conversation?

are they 2 different controller or just a mis-spelling error?

5th November, 2017

MaverickChan left a reply on Hi Guys I Need Help • 5 months ago

check your apache2.conf file in /etc

the php setting should be right.

How did you install your lamp environment ?

26th October, 2017

MaverickChan left a reply on Creating Default Object From Empty Value (post Update) • 6 months ago

@mlazuardy i guess it's your datas in the database have been corrupted.

Try truncate the table to check if everything is ok

25th October, 2017

MaverickChan left a reply on Vue Get Method Not Working, Not Sure Whats Wrong • 6 months ago

the format of you template is really a mess...

maybe v-if="!editing" should be v-else , it could make things easier.

And , is your shelve.vue file needed to be reused elsewhere? If not , i recommend you make one file , so you don't have to emit . That part is always tricky.

MaverickChan left a reply on Array Not Returning Values From Controller With Axios Request • 6 months ago

@comms_express in your controller , just

return $suppliers;

and , maybe something wrong in your Class , or in your Vue file.

I just noticed that you give a line in mounted(), i would make it a method , then call the method in mounted. Also , check your this.url , is it defined or it is a empty string.

MaverickChan left a reply on Vue Get Method Not Working, Not Sure Whats Wrong • 6 months ago

@mmilovec maybe something wrong within your shelve.vue file. I guess the data has not passed

MaverickChan left a reply on Create Anime List Like MAL • 6 months ago

@tisuchi he updated.

24th October, 2017

MaverickChan left a reply on Vue Get Method Not Working, Not Sure Whats Wrong • 6 months ago

ok , it means , in your v-for loop , you need to add a key to identify each record .

<app-shelve v-for="shelve in shelves" :key="shelve.id"  :sh="shelve" @shelveDeleted="onShelveDeleted($event)"></app-shelve>

MaverickChan left a reply on Create Anime List Like MAL • 6 months ago

last line is wrong , should be ]), yours is )]

MaverickChan left a reply on Vue Get Method Not Working, Not Sure Whats Wrong • 6 months ago

not sure what you want , if i guess right , is that your front end not refreshed?

if so , try

onShelveDeleted(id) {

    //maybe you should add some axios.delete function here or not
            
            this.shelves.splice(this.shelves.indexOf(id), 1);


Edit Your Profile
Update

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