MaverickChan

Experience

60,280

32 Best Reply Awards

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

18th January, 2018

MaverickChan left a reply on Repositories • 3 days 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 • 4 days ago

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

17th January, 2018

MaverickChan left a reply on Repositories • 4 days ago

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

MaverickChan left a reply on Repositories • 4 days 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 • 2 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) • 2 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 • 2 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 • 2 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 • 2 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 • 2 months ago

@tisuchi he updated.

24th October, 2017

MaverickChan left a reply on Vue Get Method Not Working, Not Sure Whats Wrong • 2 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 • 2 months ago

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

MaverickChan left a reply on Vue Get Method Not Working, Not Sure Whats Wrong • 2 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);


20th October, 2017

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


.then(response => {

    console.log(response.data);

});

19th October, 2017

MaverickChan left a reply on Hide And Show Some Content • 3 months ago

better try vue , much easier

16th October, 2017

MaverickChan left a reply on What's The Scope Of 'this'? Dynamic Form Validation With VueJs • 3 months ago

@Yugi

you know what? i just found you single quote email and password in the user sector, get rid of them.That is why your errors working , but user part is not.

data() {
    return {
        formInputs: {
         emai': '',// email cannot have single quote
         password: '',// so is password
        },
        errors: {
          email: '',
          password: ''
        }
    }
  },

MaverickChan left a reply on What's The Scope Of 'this'? Dynamic Form Validation With VueJs • 3 months ago

you need to use it in java way :

actually you can define email and password directly in the data ;

    email = '',

    password = '',

if you want to do it you way ,

axios.post('/login', user).then(function(response) {

        this.inputForm.email = '';
    this.inputForm.password = '';   

        };

        this.errors.email = '';
        this.errors.password =  '';
        };

      }, function (error) {
        errors.email = error.response.data.errors.email[0];
      });

the truth is , because it is a java Json request , the php side would return a json form data instead of redirect , you have to do it in vue.

for example , if the controller return a data called 'loggedIN', then in java , you need to check it .

if true , then window.location = 'your landing page url';'

if false , display some error data .

15th October, 2017

MaverickChan left a reply on How To Print The Value In Vue JS? • 3 months ago

@abhishek009 yes you can .

like :


<button class="btn btn-info" :data-clipboard-text="'http://www.url.com/id/' + data.id"

MaverickChan left a reply on How To Print The Value In Vue JS? • 3 months ago

you need to pass as a prop

14th October, 2017

MaverickChan left a reply on Sending Data To Component • 3 months ago

MaverickChan left a reply on Sending Data To Component • 3 months ago

maybe

 <dynamic-form :form-values="formItemsList"></dynamic-form>

or

use single quote

props : ['formValues;],

MaverickChan left a reply on To See Laravel Mix Succesfull Message • 3 months ago

will not appear PC.

13th October, 2017

MaverickChan left a reply on Fresh Install Error: "No Application Encryption Key Has Been Specified," • 3 months ago

check your php environment .

8th October, 2017

MaverickChan left a reply on When Using Vue , Blank Page (?) • 3 months ago

change v-if to v-show

MaverickChan left a reply on Npm Run Watch Error, Not Working In Laravel • 3 months ago

run npm install

then npm run watch

2 steps

and can you show some npm -v and node -v info?

5th October, 2017

MaverickChan left a reply on Npm Issue In Laravel • 3 months ago

you don't have to sudo , maybe that's why the modules not loading.

MaverickChan left a reply on Npm Issue In Laravel • 3 months ago

did you run npm install first?

3rd October, 2017

MaverickChan left a reply on Using JS And CSS In A Laravel Package • 3 months ago

read the doc

<script src=" {{ asset('js/app.js') }} "></script>

if you want to use special js files , there is another way , and , it's all in the docs

MaverickChan left a reply on Trying To Get Property Of Non-object • 3 months ago

@tinaye , this is a trap i fell in before , latest() returns a collection cannot eager loading anything . My solution is create a help function in your model called path(), or , create a attribute append to the model, if you only need the id of channel .

 public function path ()

    {

        return '/threads/'.$this->channel->slug.'/'.$this->id;

    }

then quote $thread->path() in your blade file

MaverickChan left a reply on Trying To Get Property Of Non-object • 3 months ago

@tinaye please show some controller and model

MaverickChan left a reply on Trying To Get Property Of Non-object • 3 months ago

dd would die and dump at the point of first record.

i am pretty sure you have some record has not been assigned to a channel.

check the database first.

1st October, 2017

MaverickChan left a reply on Fresh Install Mac OS High Sierra And Local Dev Sites Not Loading - Help! • 3 months ago

how did you install php7 ? did you use brew ?

if so , after install , run

brew unlink httpd24

MaverickChan left a reply on Ajax Post Request Returns 404 • 3 months ago


headers: {
        'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
    }


27th September, 2017

MaverickChan left a reply on How To Get Current Dropzone Selector • 3 months ago

you cannot do this .

one div , one script.

24th September, 2017

MaverickChan left a reply on Array Automatically Changed To Object After Deletion • 3 months ago

:data = "{{ $products }}"

add a : before data.

20th September, 2017

MaverickChan left a reply on Install Laravel 5.5 • 4 months ago

php version? 1.7.8?

MaverickChan left a reply on Learning Laravel • 4 months ago

no , basic sql would be good

18th September, 2017

MaverickChan left a reply on 5.5 With NPM Issues , Could Not Install Dependencies • 4 months ago

@sutherland yeah , that is the key! On that thread , "we are F**KED" is most popular word.....

MaverickChan left a reply on 5.5 With NPM Issues , Could Not Install Dependencies • 4 months ago

@sutherland after fresh install , run npm install

these error would appear :

npm ERR! path /Library/WebServer/Documents/sitetest/node_modules/js-beautify/js/bin/css-beautify.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/Library/WebServer/Documents/sitetest/node_modules/js-beautify/js/bin/css-beautify.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

and files and folders missing in node_modules.

MaverickChan started a new conversation 5.5 With NPM Issues , Could Not Install Dependencies • 4 months ago

i tried 2 Mac machines , php version 7.0 , npm version 5.4.2

composer has been updated , so is Laravel installer.

after install a new 5.5.4 laravel project , when i run npm install , some error appears , then it stop installing dependencies.

i tried copying node_modules folder from a 5.4 project , and it is working . but when i run update , it gives error message again . and also it delete the dependencies installed.

it is really strange.

then i tried a 5.4 project , same error happened. is that something wrong with composer update?

17th September, 2017

MaverickChan left a reply on Form • 4 months ago

did you import jquery first?

var $ = require('jquery');

before export default

then you can use jquery as before

14th September, 2017

MaverickChan left a reply on Cannot Get And Set Datepicker In Input Field With V-model • 4 months ago

datetimepicker require jquery, you need to import jquery first

var $ = require('jquery');

before export default , then you can use jquery methods like old time

and , i suggest you use element-ui , a vue based ui system , it will meet all your need.

10th September, 2017

MaverickChan left a reply on Can't Install PHP7?? • 4 months ago

@kims if you are using a Mac , try unlink php5 .

7th September, 2017

MaverickChan left a reply on Blade View Not Found • 4 months ago

did you yield('content') in your app.blade.php

5th September, 2017

MaverickChan left a reply on Vue SubmitButton Component - Form Does Not Submit • 4 months ago

@click.prevent = "isError"

isError must be a data declared , default true. once clicked let it be false .

declare another data called isSpinning default = false;

if (!isError){

    this.isSpinning = true;

}

MaverickChan left a reply on Vue Carousel - Setting Icons As Navigation Buttons • 4 months ago

@Leff7 oh , sorry ,

maybe you could assign 2 properties

a = "keyboard_arrow_right"

b="keyboard_arrow_left"

but , in my opinion , you need to rewrite the left right button in Vue way

MaverickChan left a reply on Vue Carousel - Setting Icons As Navigation Buttons • 4 months ago

<img v-if="testimonial.image" :src="testimonial.image.data.path + '?rand=' + new Date()" class="is-96x96">

try this , maybe

MaverickChan left a reply on Axios Response Return The Whole Html Rather Than Data • 4 months ago

 public function ajaxcall()
    {
        $posts=Post::all();
        return $posts;
    }

this will return only the posts , not the entire view file.

the previous function would return a view file , a whole blade file.....

MaverickChan left a reply on How Can I Assigning Null Value For Pots_id Value Using If Else Statement • 4 months ago

the logic should not be that complicated .

in your database design , add default value null to post_id.

when something meet true , then let the post_id = $id.

it can save you a lot of lines of code.

and , in if else statement , make it simple , or you will be crazy

MaverickChan left a reply on Axios Response Return The Whole Html Rather Than Data • 4 months ago

create another function for ajax call , return only the $posts instead of the view.

Edit Your Profile
Update

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