MaverickChan

Experience

43,370

25 Best Reply Awards

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

23rd June, 2017

MaverickChan left a reply on What Makes Jeffery Way Show His Face In Videos Lately? • 1 day 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 day ago

thanks buddies @KNietzsche @topvillas very inspiring

MaverickChan left a reply on How Do I Use Vue Router And Normal Laravel Route Together • 1 day 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 day 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 day 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 day 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 day 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 ? • 2 days ago

var swal = require('sweatalert');

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

MaverickChan left a reply on Hi Gays! Have A Migratoin Error • 2 days ago

GAYS?Are you serious

21st June, 2017

MaverickChan left a reply on :style="{'box-shadow': BoxShadow}" Is Ignored • 3 days 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]. • 5 days ago

what is in your Article ?the model file

MaverickChan left a reply on Can Not Run Other Javascripts Insde Vue Components • 5 days 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 • 5 days 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 • 5 days 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 • 5 days ago

try dataTransitiongoal

i remember in Vue , you should avoid using -

MaverickChan left a reply on Can Not Run Other Javascripts Insde Vue Components • 5 days 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.

MaverickChan left a reply on Check All Checkbox Multiple Ids • 5 days ago

$("#selectAll").click(function () {
        $('input:checkbox').not(this).prop('checked', this.checked);     
    });

MaverickChan left a reply on Can I Change The Text Colour In Sweet Alert Box When Call Alert Inside A Controller? • 5 days ago

yes you can , find the css class and overwrite it

MaverickChan left a reply on Pass JSON To A Vue Component • 5 days ago

you should pass tags as object , then Vue can traversal it

<tags :tags="{{ $tags }}"></tags>

:is very important , without it ,you are passing a single string to vue.

18th June, 2017

MaverickChan left a reply on V-model Not Updating When Data Changes In Edit Form • 6 days ago

each modal should be assigned to a unique id .

try

:id ="'anything' + item.id"

MaverickChan left a reply on Server Return 200, But Ajax Return 500. I Have No Idea Whats Going On XD • 6 days ago

url: '/admin/user/'+id+'/show/',

should be

url: '/admin/user/'+id+'/show',

17th June, 2017

MaverickChan left a reply on Laravel 5 How To Store The Publish Timestamps When User Click The Publish Button • 1 week ago

name a column in database when publish , save time into database on the column you created

15th June, 2017

MaverickChan left a reply on Laravel 5.4 - Query To Retrieve Posts Of People The Current User Is Following • 1 week ago

use morph relationship

jeff has a lesson in How Do I serie

check that out and steal the code

MaverickChan left a reply on Pick A Channel, I'm Not A Robot ! Provide A Title !! Can You Improve A Little ? • 1 week ago

Jeff always says : people are worse than robots.......LOL

MaverickChan left a reply on Vue Form - Promises - Resetting Button Immediately • 1 week ago

where is your class?

14th June, 2017

MaverickChan left a reply on Thumbnail Generation • 1 week ago

use Intervention/Image as a vendor through composer

then make a ajax all in your vue component to make thumbnail picture

also , you need a lightbox .

MaverickChan left a reply on Ajax Send Post Data But Receives Http Request Get • 1 week ago

read the doc please , dropzone is not used like you do.

<form action="{{ url('photo/upload') }}" method="POST" class="dropzone" id="addPhotosForm">
    {{ csrf_field() }}          
</form>

<script>
Dropzone.options.addPhotosForm = {  
            init:
            maxFilesize: 30, // MB
            paramName: 'photo',//the name should be same in your controller
            acceptedFiles:'.jpg, .jpeg, .png , .bmp'
              
            }

</script>

13th June, 2017

MaverickChan left a reply on Build A Forum - Ep 32 PATCH 405 • 1 week ago

maybe you miss some file when copy to server.

run php artisan cache:clear and php artisan view:clear

MaverickChan left a reply on Laravel Routes Messed Up From Mac Env To Linux Env. • 1 week ago

linux is case sensitive system , naming your directories should be very carefully.

MaverickChan left a reply on Vuejs + Laravel Axios Array Problem • 1 week ago

try

return json_encode($consult);

and also , i notice your ajax request is a static one , so maybe you can do a normal laravel get request in the parent view file or parent component , then pass the result as a prop to the child component.

12th June, 2017

MaverickChan left a reply on Vue-loading • 1 week ago

try this : vue-laoding-spinner

11th June, 2017

MaverickChan left a reply on Image Upload Not Working On Server But Working On Local WAMP Server • 1 week ago

because Image to handle the saving instead of using move() method.

MaverickChan left a reply on Image Upload Not Working On Server But Working On Local WAMP Server • 1 week ago

@mushood

sorry my bad it should be :

Image::make($image)->save($path);

i just notice that you don't have to use Image ,because Image is for some editing case , for example , you need to make a thumbnail or rotate the photo.

so , just :

$image->move($path, $filename);

remember , make sure the directory exists . use the code i give you

MaverickChan left a reply on Image Upload Not Working On Server But Working On Local WAMP Server • 1 week ago

try this

$path ='images/' . $filename;

Image::make($image->save($path);

if (!file_exists($path)) {
            mkdir($path,0777,true);
        }

10th June, 2017

MaverickChan left a reply on Generic Components. • 2 weeks ago

there is tons of ui components on the internet , such as element-ui , which i am using now . it can save you a lot of time.

of course , create your own component is a better way

MaverickChan left a reply on How To Pass An ID • 2 weeks ago

please more details of your question

9th June, 2017

MaverickChan left a reply on Vue.js2 Renders Empty Array • 2 weeks ago

you need to v-for names to name , then get the data.

MaverickChan left a reply on Retrieve Single Column Value From A Table • 2 weeks ago

$user_id = Auth::user()->id; 

$picture = Profile::where('user_id','=',$user_id)->first();

 return $picture->profile;

MaverickChan left a reply on Simple Update On User Not Working With Post Method • 2 weeks ago

update should be a put or patch method

add a line in your form

<input type="hidden" name="_method" value="PUT"

MaverickChan left a reply on Relationships Not Working • 2 weeks ago

$product is an object

$product->id is the right form.

and your category relationship , the function name is categories

so it should be

$product->categories

and so is the subcategories

MaverickChan left a reply on Error Displaying Uploaded Image: NotFoundHttpException In RouteCollection.php Line 179: • 2 weeks ago

no , you stored the file in wrong place.

those files should be in /var/www/html/Project_name/public/properties/1/anything.jpg

then in your view

<img src="{{url('/public/properties/1/1496879400593891289226c.jpg')}}"/>

the first slash is better added

8th June, 2017

MaverickChan left a reply on Vue In Blade Layout • 2 weeks ago

that is a common trap you would fall into .

look , each modal should have a unique id , so every time you click a modal button , it will open one modal at a time.

7th June, 2017

6th June, 2017

MaverickChan left a reply on Laravel Deploy The Project • 2 weeks ago

never use that before , but after searching some informations , i just notice that they provides PgSql instead of MySql .

maybe this is the problem.

MaverickChan left a reply on BadMethodCallException In Macroable.php Line 74: Method Specialization Does Not Exist • 2 weeks ago

that's because you did not validate the data when saving.

MaverickChan left a reply on BadMethodCallException In Macroable.php Line 74: Method Specialization Does Not Exist • 2 weeks ago

and your Doctor model

    public function specialization() {
            return $this->HasMany('App\Specialization');
        }

should be

    public function specialization() {
            return $this->hasMany('App\Specialization','id');
        }

MaverickChan left a reply on Laravel Deploy The Project • 2 weeks ago

i mean your server environment , OS of server

MaverickChan left a reply on BadMethodCallException In Macroable.php Line 74: Method Specialization Does Not Exist • 2 weeks ago

this line :

$doctor->spec_id = $request->specialization()->id;

should be

$doctor->spec_id = $request->specialization->id;
Edit Your Profile
Update

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