thirdwunder

thirdwunder

Member Since 2 Years Ago

Montreal

at Third Wunder

Experience Points 17,850
Experience Level 4

2,150 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 175
Lessons
Completed
Best Reply Awards 0
Best Reply
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.

19 Apr
1 year ago

thirdwunder left a reply on Adding Custom Team Profile Fields

anyone know how to add relationships to the team vue object? i have added another object ID to the team table, and managed to get it to save and all that. i've also managed to add the object id to the team object in vue, but how would i have the relationship reflected in the vue object.

18 Apr
1 year ago

thirdwunder left a reply on Adding Custom Team Profile Fields

has anyone found a solution or detailed instructions on how to properly add fields to teams in laravel spark?

14 Apr
1 year ago

thirdwunder started a new conversation Laravel Language Switching

What’s the best way to structure an app to handle multi language and language switching toggles?

24 Sep
1 year ago

thirdwunder started a new conversation Multi City / Global Laravel App Structure

I’m looking at creating a web app that is multi city and multi country in that a user when logging in , either y geolocation or choice, would choose the country and city of residence and would see content localized to them. This would also need localization and translation per city and country.

Does anyone have any experience with this sort of thing and how would one structure their app from the start to handle that

19 Jul
1 year ago

thirdwunder left a reply on Delay Execution Of An Event Listener By A Specific Time

@martinbean thats a good point. For now I’ve just been exploring the different ways I can do this, and trying to understand my options. The reason I wanted to use an event per photo model created is that that way I can keep track of only the new images that are created, and not have to rerun a thumbnail creation and optimization on all images. A lot of the time the csv will have the same image a small before. So by firing an event for only 8nages that are created, I make thumbnails for only new images coz existing images would have even previously created. I wanted to send every new images in Tom a processing queue, weather 5min delay or after the whole import process is complete Unless there are better ways of managing bulk image optimization and manipulations, I’m all ears.

18 Jul
1 year ago

thirdwunder left a reply on Delay Execution Of An Event Listener By A Specific Time

@martinbean i am looking for a delayed event. The setup is that i have a csv with data in it, where one of the columns is an image url. I'm importing this url and saving to amazon S3 and recoding the import in to a photos table. While i'm doing that i'd like to create thumbnails. But since the import of the content of the csv is quite intensive, and upload to s3 can take time, i'd like to delay the creation of thumbnails to about 5min (coz thats the longest the import takes) to make sure that the image is available in s3. Sometimes if the thumbnail creation function is triggered too quickly it throws and error.

all this is invoked in an artisan command btw, so not in a controller. hence wanting to trigger a createThumbnails event from the create of the Photo model and save in the db.

16 Jul
1 year ago

thirdwunder left a reply on Delay Execution Of An Event Listener By A Specific Time

Ok so essentially I would override the create method in a model, within fit call the parent create method and then use the global event method with a delay. Am I getting this right? The example there is initiated from a controller

15 Jul
1 year ago

thirdwunder left a reply on Delay Execution Of An Event Listener By A Specific Time

Sorry, but im new to this. How would I trigger an event on create of a model object. I was using the Laravel events system, but I’m guessing i would have to override the create function to do what’s your suggesting ?

14 Jul
1 year ago

thirdwunder left a reply on Delay Execution Of An Event Listener By A Specific Time

i've read the documentation there but the examples are on how to do it from a controller. my events are initiated from a model create. not sure how to implement a delay from an event

thirdwunder started a new conversation Delay Execution Of An Event Listener By A Specific Time

I have a event for when a model is created which invokes listener which creates thumbnails for an image. i'd like to delay this execution by a few minutes, but i cant seem to find the right documentation on how to delay the listener class with InteractsWithQueue implementing ShouldQueue. How would i add a time delay on the handle method?

28 Jun
1 year ago

thirdwunder left a reply on Vue And Axios In Wordpress Plugin To Laravel API App

Thanks for the reply @spekkionu I feel I wanted the Laravel api to be open to anyone, how would I go about doing that without specifying each website connecting to it?

thirdwunder started a new conversation Vue And Axios In Wordpress Plugin To Laravel API App

Hi everyone, I have a laravel app with an oauth based api using passport. I'm consuming the data from API from a wordpress plugin. I've configured the plugin with an access_token via passport. Ive been successfull in getting data from the api using guzzle, but when working with Vue and Axios to get the content from the API, i'm hitting a bit of a snag.

I keep getting the following error in the console

XMLHttpRequest cannot load http://wunderproperties.dev/api/v1/import/broker. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://bindupatel.dev' is therefore not allowed access.

here is my code so far. not sure what i'm getting wrong here. I'm getting the data i need from PHP and using an API app like Postman. Just not from axios

<div id="wunderproperties-dashboard-import">
  <div class="" v-if="error">
    <pre>{{error}}</pre>
  </div>
  <h1>{{message}}</h1>
  {{broker}}
</div>
<script>
  Vue.config.devtools = true;
  window.axios = require('axios');
  window.axios.defaults.headers.common = {
      'X-Requested-With': 'XMLHttpRequest'
  };

  var app = new Vue({
    el: '#wunderproperties-dashboard-import',
    data: {
      error: '',
      blog_url : '<?php echo get_bloginfo('url');?>',
      broker_id : '<?php echo get_option('wprop_api_centris_broker_id') ;?>',
      client_access_token : '<?php echo get_option('wprop_api_api_client_access_token') ;?>',
      broker: '',
      regions : '',
      property_types : '',
      features : '',
      properties: '',
      api_url : 'http://wunderproperties.dev/api/v1/import/',
      message: 'Hello Vue!',
      axios_config : ''
    },
    created : function(){

      this.axios_config = { headers: {
              'Access-Control-Allow-Headers': 'Authorization',
              'Accept': 'application/json',
              'Access-Control-Allow-Credentials' : true,
              'Access-Control-Allow-Origin' : this.blog_url ,
              'Authorization' : 'Bearer ' + this.client_access_token,
            } };
    },
    mounted : function(){
      this.getBroker();
    },
    methods : {
      getBroker( ){
        var self = this;
        var endpoint = 'broker';
        axios.get(this.api_url+endpoint)
         .then(response => {
             self.broker =  response.data ;
          })
         .catch((error) => {
           self.error =  error;
             console.log('error ' + error);
          });
      },

    },
  })
</script>

10 Jan
2 years ago

thirdwunder left a reply on Valet Error Log

Its kinda close, but i was hoping to get back some of the functionality that was previously there. I guess the valet option is gone :(

Thanks for your help

08 Jan
2 years ago

thirdwunder started a new conversation Valet Error Log

I was using valet for a while and I used to have the ability to see the error/access logs using "valet logs" or "valet server-logs" but I got a new machine I setup laravel and valet, now I'm not able to. The docs for laravel 5.3 have no mention of it. is this still possible? can I see the access or error logs while using valet?