umerhassan

umerhassan

Programmer at Lahore Graphic Design

Lahore

Member Since 11 Months Ago

Experience Points 3,250
Experience
Level
Lessons Completed 19
Lessons
Completed
Best Reply Awards 0
Best Answer
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

04 Dec
1 week ago

umerhassan started a new conversation Failed To Connect To Localhost Port 9515: Connection Refused

I am trying to write sub basic test cases with laravel dusk, I am using laravel 5.4 on running test sometimes I get perfect results but most of times I get error

Failed to connect to localhost port 9515: Connection refused

I also updated my chrome binary to latest but still same issue

28 Oct
1 month ago

umerhassan left a reply on How I Can Secure My Get Request In Laravel

I know its late but I am also trying to get this point clear, that if someone wants GET requests need to secure in sense that it should call through http client like axios, ajax, curl etc but not expose the entire response like in browser.

11 Oct
2 months ago

umerhassan started a new conversation How To Make S3 Images For Google Page Speed Friendly

I need to rank up platform that is in laravel, I am using S3 for images storage how could it be optimized?

13 Sep
3 months ago

umerhassan left a reply on Image Cropper Before Uploading

@Mick79 yes it is working fine with me

06 Aug
4 months ago

umerhassan started a new conversation I Need Tax Calculation At Time Of Checkout In My ECommerce Solution

Anybody knows best tax calculation service with minimum cost or free, I have to show in cart at time of checkout.

Thanks, Umer Hassan

02 Aug
4 months ago

umerhassan left a reply on How Do I Create Chat Like Emailing In Website

safasfasfasfasdfas

afasfasfasdf
asfasdfafs
26 Jul
4 months ago

umerhassan left a reply on Unknown Custom Element: <tag-name> - Did You Register The Component Correctly? For Recursive Components, Make Sure To Provide The "name" Option.

I am using like this

Vue.component('top-three',{
    template: require('./templates/top-three.html'),
    data(){
        return {
            topThree: '',
        }
    },
    mounted(){
        axios.get('/top-three').then(
            response => this.topThree = response.data
        ).catch(function (error) {
            console.log(error);
        });
    }
});
23 Jul
4 months ago

umerhassan started a new conversation Unknown Custom Element: <tag-name> - Did You Register The Component Correctly? For Recursive Components, Make Sure To Provide The "name" Option.

I am using vuejs in my project, I have one instance with ID : 'main-app' (like global or wrapper) inside of 'main-app' I need other custom elements with respect to each page. Code is working fine but it says 'Vue warn' for each element. If I push elements from the scope of 'main-app' warnings will also gone. But still I need under same scope.

21 Jun
5 months ago

umerhassan left a reply on Property Or Method "message" Is Not Defined On The Instance But Referenced During Render

If I use vue code without ready function

    var app = new Vue({
        el: '#app',
        data: {
            message: 'Hello Vue!'
        }
    })

it says "Cannot find element: #app"

20 Jun
5 months ago

umerhassan started a new conversation Property Or Method "message" Is Not Defined On The Instance But Referenced During Render

I am just studying vuejs but stuck in this error. I don't know how to get it rid it off

<template>
    <div class="container">
        <div class="row">
            <div class="col-md-8 col-md-offset-2">
                <div class="panel panel-default">
                    <div class="panel-heading">Example Component</div>
                        <div id="app">
                            {{ message }}
                        </div>
                    <div class="panel-body">
                        I'm an example component!
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
    $(document).ready(function () {
        var app = new Vue({
            el: '#app',
            data: {
                message: 'Hello Vue!'
            }
        })
    })
</script>

23 May
6 months ago

umerhassan left a reply on How Do I Create Chat Like Emailing In Website

yes it could be but not live chat, I need simple like emailing or support ticketing.

umerhassan started a new conversation How Do I Create Chat Like Emailing In Website

I need simple communication channel between user and vendor in website what would be the best way other than rtc (twilio, pvlio etc), I want to create like ticketing but in 1:1 private chat

Thanks

22 May
6 months ago

umerhassan started a new conversation Chat Module

I want to make chat feature in laravel app where user can chat with vendors, but need simple chat solution, it will not live. It could be like email process let me know any third party service in this case

Thanks

05 May
7 months ago

umerhassan started a new conversation Image Compression

I am trying to follow google insights for page speed, my website has an option that one can upload his/her product, so how can I apply image compression on the time of uploading, that meets google insights standards.

Thanks

27 Apr
7 months ago

umerhassan left a reply on Rules Engines

@Vilfago you are right but that rules are referring to validations rules, I need rules for search.

umerhassan started a new conversation Rule Engine

I need help about building rule engine, any article that shows logic how I can create simple rules over search.

02 Apr
8 months ago

umerhassan left a reply on Autocomplete Search

@jcmargentina thank you for your stuff, I already fixed with ajax I just wanted to know the best practice for searches.

31 Mar
8 months ago

umerhassan left a reply on Autocomplete Search

ok sure so, we can go with for now

umerhassan left a reply on Autocomplete Search

I know about like but i want quick suggestive search in drop down with each input.

umerhassan left a reply on Autocomplete Search

inside my website, want to search products from my database

umerhassan started a new conversation Search

I want to implement search in laravel project, any library or suggestion for autocomplete search from database.

23 Mar
8 months ago

umerhassan left a reply on Redirect Request From Ip To Domain

ok great will check and let you know

umerhassan started a new conversation Redirect Request From Ip To Domain

I have mapped my forge hosting with godaddy's domain, but still I can access website via ip. How I can redirect requests forcefully from ip to domain?

umerhassan left a reply on SparkPost Setup With Laravel

Thank you I have change my plan from sparkPost to mailGun and that is working fine

umerhassan left a reply on Session Of A Shopping Cart

Hello, first why are you using session cart with database, you can use https://github.com/Crinsane/LaravelShoppingcart package that has a lot of required functions, and second, instead of DB use eloquent that will be much easier to figure out the problem

Thanks

umerhassan left a reply on Best Way To Handle MethodNotAllowedHttpException

I have just solved by checking in Handler.php that if $request->_token is coming null or not. Thanks @Cronix

22 Mar
8 months ago

umerhassan left a reply on Best Way To Handle MethodNotAllowedHttpException

I know but if someone do refresh page on submitted page it will also throw exception. I just want to redirect, I can check that in controller manually for each request but I am asking is there any way to handle general exceptions like in handler file or anywhere? exception I got

Symfony \ Component \ HttpKernel \ Exception \ 
MethodNotAllowedHttpException

umerhassan started a new conversation Best Way To Handle MethodNotAllowedHttpException

How to check or redirect if Request object is null, any general or global solution Thanks

13 Mar
9 months ago

umerhassan left a reply on SparkPost Setup With Laravel

I am following that: https://github.com/SparkPost/php-sparkpost in response I get above message.

umerhassan left a reply on SparkPost Setup With Laravel

I received status

200 Array ( [results] => Array ( ) )

I think 200 is code of ok but nothing happens

umerhassan started a new conversation SparkPost Setup With Laravel

I need to setup sparkpost with my laravel project I followed all basic steps like: Setup Account of sparkpost, Add sending domain, Verify status with DNS

But still not sending emails. Do anyone have experience/blog of sparkpost setup with laravel?

Thank you.

27 Feb
9 months ago

umerhassan left a reply on Class DatabaseSeeder Does Not Exist

Yes I found that Thank you for help.

26 Feb
9 months ago

umerhassan started a new conversation Class DatabaseSeeder Does Not Exist

I am trying to run

php artisan db:seed

But it says the error

In Container.php line 729:
Class DatabaseSeeder does not exist  
31 Jan
10 months ago

umerhassan left a reply on Build Tool In Laravel

Thank let you know after checking these

umerhassan left a reply on Build Tool In Laravel

I have already done with forge, I mean about built tool to compress all files like js, css automatically as 'Grunt' https://gruntjs.com/ do.

umerhassan started a new conversation Build Tool In Laravel

I am developing application in laravel and now need to deploy, I am looking for any built tool best for laravel.

16 Jan
10 months ago

umerhassan left a reply on Get Id Of Specific Item In List

Simple.. :) actually I was used to jQuery it is my first try in vue thank you

umerhassan left a reply on Get Id Of Specific Item In List

<croppa v-model="myCroppa[1]" :quality="5" id="image-1" @file-choose="handleCroppaFileChoose" @image-remove="handleImageRemove" :show-loading="true" :width="180" :height="180" :prevent-white-space="true" canvas-color="transparent"></croppa>

umerhassan left a reply on Get Id Of Specific Item In List

I am using vue js image cropper, I initiated 6 instances from one component as above. It assigned dynamically id to each instance. On each click I call "handleCroppaFileChoose" method but I want handler or element selector of clicked instance. If I use $(this) it returns "#imagesDiv" element.

umerhassan left a reply on Get Id Of Specific Item In List

did you understand my problem?

umerhassan left a reply on Get Id Of Specific Item In List

Can you give any hint that, how to pass?

umerhassan left a reply on Get Id Of Specific Item In List

var app = new Vue({
    el: '#imagesDiv',
    data: {
        myCroppa:[],
        imgUrl: '',
        numberFiles:0,
    },
    methods: {
        handleCroppaFileChoose: function(e){
        // here I want id of specific item lets say I get id for 3rd instance
        console.log(this.myCroppa[3]._uid);             
        },
})
12 Jan
11 months ago

umerhassan left a reply on Get Id Of Specific Item In List

var app = new Vue({
    el: '#imagesDiv',
    data: {
        myCroppa:[],
        imgUrl: '',
        numberFiles:0,
    },
    methods: {
        handleCroppaFileChoose: function(e){
        // here I want id of specific item lets say I get id for 3rd instance
        console.log(this.myCroppa[3]._uid);             
        },
})

umerhassan started a new conversation Get Id Of Specific Item In List

I am using vue-croppa library for image cropping https://github.com/zhanziyang/vue-croppa I have multiple initiated multiple images with same model. I defined instances in list, but want to get id of specific item on triggering function "handleCroppaFileChoose"

30 Dec
11 months ago

umerhassan left a reply on Image Cropper Before Uploading

I am using the code like

$uploadCrop[j].croppie('result', {
    type: 'canvas',
        size: 'orignal',
        format: 'jpeg'
}).then(function (resp) {
    // upload via ajax
}); 

and after uploading it still becomes 3 times bigger.

29 Dec
11 months ago

umerhassan left a reply on Is Ajax Call Route Is Secure?

yes you right there, I need suggestion to make ajax call secure because the code of js is public for all and anyone can get the idea of logic behind.

umerhassan started a new conversation Is Ajax Call Route Is Secure?

I am just wanted to know that is the use of ajax to call routes is secure?

umerhassan left a reply on Image Cropper Before Uploading

Ok thank you I was doing the same, but found there was another issue.