DigiProduct

DigiProduct

Member Since 4 Months Ago

Experience Points 27,650
Experience Level 6

2,350 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 264
Lessons
Completed
Best Reply Awards 1
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.

18 May
1 day ago

DigiProduct left a reply on Having A Very Rough Time Learning Laravel

Would agree with the Andre Madarang courses ... I've learnt a lot from him ... he has some very useful courses.

14 May
5 days ago

DigiProduct left a reply on Laracasts Search

@jeffreyway As I said in an earlier message ....

I guess that would be because ... I'm stupid!!!

You mean the input box that says "Whatcha looking for?" don't you?

And stupid me was using the Search Icon at the top right of the page near my profile picture.

DUH!!

I hope you can't see my red face ....

13 May
6 days ago

DigiProduct left a reply on Laracasts Search

@ROBSTAR - @robstar Was a sarcastic reply really necessary? I had already accepted that I had made a mistake and used the wrong search box ...

DigiProduct left a reply on Need Help With An Axios Problem

Except I just realised that I don't know how to do that ... do I just apply a Best Answer?

DigiProduct left a reply on Need Help With An Axios Problem

@hjortur17 You're right ... I should have done that. Will do it now.

09 May
1 week ago

DigiProduct left a reply on Need Help With An Axios Problem

Ended up deleting the whole script section, and then re-typing it .. and it finally worked.

Must have been some minor typo there that I kept overlooking again and again and again

Thanks for all the help guys

DigiProduct left a reply on Need Help With An Axios Problem

Sorry to have to tell you @patrickadvance but your suggestion didn't work either.

DigiProduct left a reply on Need Help With An Axios Problem

@patrickadvance I'll try your suggestion ... thanks

DigiProduct left a reply on Need Help With An Axios Problem

Thanks for the help, but I'd already tried most of those suggestions before posting here.

I forgot to remove the this.axios ... I'd tried that out of desperation

I've been going round and round in circles with this for about 2 hours ... tried so many different combination of things I've just about forgot what I originally started with

I just remade it with the following ...





import axios from 'axios'


export default {
  name: 'PageIndex',
  data () {
    return {
        contacts: {},
      
      contactsAttention,
      contactsToday,
      conversations,
      appointments,
      offline
    }
  },
  methods: {
    loadLeads: function() {
        //this.contacts = this.contactsToday;
        console.log('loadLeads started AGAIN');

        axios.get('http://localhost:8000/getleads')
        .then(
            response=>{
                ({data}) => (this.contacts =  data.data)
                console.log(this.contacts)
            }           
        )
        .catch(
            error=>{
                console.log(error)
            }
        );

        console.log('loadLeads ended');
    },



DigiProduct started a new conversation Need Help With An Axios Problem

Can anyone quickly tell me what stupid thing I am doing here?

This is in a Vue component that seems to be being displayed, and doesn't report any errors

My Axios completes, and I can see my data being returned in the Network tab in Chrome Dev Tools

YET ... none of the console.logs after the Axios gets actioned ... not even the one that should log "loadLeads ended"

I must be doing something stupid ... but I just can't see it

Can anyone give me a pointer?



import axios from 'axios'


export default {
  name: 'PageIndex',
  data () {
    return {
        contacts: [],
      
    }
  },
  methods: {
    loadLeads: function() {
        console.log('loadLeads started');

        this.axios.get("localhost:8000/getleads")
        .then(
            response=>{
                console.log(response)
            }           
        )
        .catch(
            error=>{
                console.log(error)
            }
        );

        console.log('loadLeads ended');
    },


08 May
1 week ago

DigiProduct left a reply on Clear Viewed Episodes In Series

I think I agree with @diogogomes

There's been several times that I have wanted to re-watch a series and have the system automatically track my progress through the re-watch

07 May
1 week ago

DigiProduct left a reply on Can Forge Provision Non-Laravel Sites

Excellent, that's what I was hoping to hear.

DigiProduct started a new conversation Can Forge Provision Non-Laravel Sites

I want to add a couple of small non-Laravel sites to a server which will be provisioned at Digital Ocean for a Laravel project.

Can the provisioning of them from their Github repositories be done my Laravel Forge?

03 May
2 weeks ago

DigiProduct left a reply on Laravel Series With A Vue.js UI Framework (Vuetify.js Or Quasar)

Would love to find a series on Quasar ... especially if it could be implemented using Jonathan Reinink's InertiaJS system for "Server-side apps with client-side rendering"

That would be an amazing combination.

DigiProduct left a reply on How Can I Create A Vue JS Single Page App With Laravel And SSR (Server Side Rendering)

Jonathan Reinink is doing some excellent work on this. I've just been looking his InertiaJS system.

https://reinink.ca/articles/server-side-apps-with-client-side-rendering

02 May
2 weeks ago

DigiProduct left a reply on Where Are You All From?

Paphos, Cyprus until recently ... now, I'm in Salisbury, UK

DigiProduct left a reply on USPS Rate Calculator

A simple Google search takes you direct to their API at

https://www.usps.com/business/web-tools-apis/welcome.htm#api

29 Apr
2 weeks ago

DigiProduct left a reply on Laracasts Search

I guess that would be because ... I'm stupid!!!

You mean the input box that says "Whatcha looking for?" don't you?

And stupid me was using the Search Icon at the top right of the page near my profile picture.

DUH!!

I hope you can't see my red face ....

DigiProduct started a new conversation Laracasts Search

Sorry @JeffreyWay

The recent upgrade to the Laracasts Search ... isn't very user-friendly ...

In fact ... it sucks ...

No other way to describe it ... it sucks!

You need to click the search icon

then choose whether you want Lessons or Discussions

then type in your search query ...

then choose ONE of the displayed results ...

If that choice doesn't give you the answer you want ... you have to start from scratch AGAIN ... NOTHING gets remembered ...

The second search ... it doesn't feel TOO bad ... but if you end up doing 4 or 5 searches ... aaarrrrggghhhh!

Couldn't it at least remember my search query and where I searched (lessons or discussions)?

The current implimetation is a major time-suck ...

I was doing a search today ... and by the time I got to retyping everything for the 4th time ... I was so pi**ed *ff that I ended up writing this message!

DigiProduct left a reply on How To Write Code In Laracast?

When you are writing any reply, the reply popup has a little message at the bottom left of the screen which says "Use Markdown with GitHub-flavored code blocks." .... and the "GitHub-flavored" is a hyperlink.

If you click that it shows you the correct backticks, so you can copy them and paste them back into your reply.

I always do that so that I don't use the wrong thing ... and I also don't have to remember what to use.

27 Apr
3 weeks ago
25 Apr
3 weeks ago

DigiProduct left a reply on QR Code Generator

I don't know if you want a complex QR code with background images, or alternative colors ... but as long as all you want is a simple black on white QR Code ... and you don't need it to be larger than 547pixels by 547 pixels ... then you can do it all with one simple call to the Google API.

The old Google Chart Api was depreciated ... but the Infographics Api is still available

To create a QR Code with the text "QR Code for Laracasts" in a size of 500 pixels by 500 pixels you just need the folloing URI

https://chart.googleapis.com/chart?chs=500x500&cht=qr&chl=QR%20Code%20for%20Laracasts

You can view the documentation at

https://developers.google.com/chart/infographics/docs/overview

24 Apr
3 weeks ago

DigiProduct left a reply on Is Laracast Reply Scrubber Scrollbar Available For Jquery?

@YANALAM67 - I use Vue on some of my projects, so would be happy to see a Vue implementation ... although I respect that as the opening poster you requested how to do it via Jquery .... and didn't intend to hijack you post..

DigiProduct left a reply on Is Laracast Reply Scrubber Scrollbar Available For Jquery?

I would also like to see how this is done.

@JeffreyWay Any chance of a video explaining how to do this?

23 Apr
3 weeks ago

DigiProduct left a reply on Best Way To Tackle This App? Ideas Welcome

@michalis The series of videos on Laracasts called "Build A Laravel App With TDD" covers this exact scenario, so it would be a useful series for you to watch.

05 Apr
1 month ago

DigiProduct left a reply on Vuejs Vue-loader + Laravel (CSS Modules)

I was watching a video earlier today that does exactly that ... but their style tag was different to your one.

They used

<style lang="scss" scoped>
19 Feb
3 months ago

DigiProduct left a reply on Filter Multiple Results From Database In View

@daugaard47 You might find it useful to review the talk given by Jonathan Reinink on "Advanced Querying with Eloquent" ( https://laracon.net/2018 ).

He builds up a multi-part query in that talk.

18 Feb
3 months ago

DigiProduct left a reply on Problem Viewing Videos

Just to help you confirm that the issue is at your browser and not at Laracasts ... I can watch that video fine in Chrome

16 Feb
3 months ago

DigiProduct left a reply on Does Any Time Series Adjustable Chart Package Exist For Laravel?

You mentioned time series data charts ... but didn't mention that the zooming was the critical feature for you.

Now that you've identified the critical issue, maybe someone will know of an alternative.

15 Feb
3 months ago

DigiProduct left a reply on Access Vue Variables From Slot Data

I thought you needed ... "access/update Vue data variable from inside a named slot"

So isn't it all happening inside Vue?

DigiProduct left a reply on Access Vue Variables From Slot Data

Jeffrey covers that in his Vue course (episodes 12 and 13)

https://laracasts.com/series/learn-vue-2-step-by-step

14 Feb
3 months ago

DigiProduct left a reply on Scope To Get All Records That Have Anniversary Within The Next Two Weeks

The following code is an example provided by Jonathan Reinick at Laracon 2018 during his talk about Eloquent

Birthdays this week

   public function scopeWhereBirthdayThisWeek($query)
   {
       $start = Carbon::now()->startOfWeek();
       $end = Carbon::now()->endOfWeek();
       $dates = collect(new \DatePeriod($start, new \DateInterval('P1D'), $end))->map(function ($date) {
           return $date->format('md');
       });
       return $query->whereNotNull('birth_date')->whereIn(\DB::raw("to_char(birth_date, 'MMDD')"), $dates);
   }

DigiProduct left a reply on HTML/CSS Animation?

Have a look at the Greensock GSAP libray

https://greensock.com/gsap

That may help you achieve what you want

11 Feb
3 months ago

DigiProduct left a reply on Countdown Is Not Defined

In case it helps anyone who finds this thread, I came across this Vue countdown timer, and decided to use this to create a Vue component for my own use.

https://codepen.io/negarjf/pen/MVwaew

DigiProduct left a reply on Countdown Is Not Defined

@bobbybouwmann thanks again.

Yes, it's quite old, and my first inclination had been to just "include" it, like I would have done in years gone by.

I've only recently started using Laravel, and have decided to started using new techniques to bring my skills up-to-date, and where possible use best-practices.

So, just to clarify, if the library had been compatible to modern standards, then then the following technique would have worked and would allow me access as I was attempting inside a script on a page? (Just need to understand for future)

window.countdown = require('countdown');

I actually decided that instead of persuing this technique... that it would be better to do it as a Vue component.

10 Feb
3 months ago

DigiProduct left a reply on Countdown Is Not Defined

@bobbybouwmann thanks for replying.

Did you mean that, in app.js, instead of using

import countdown from 'countdown';
window.countdown = countdown;

I should use

window.countdown = require('countdown');

I just tried that and still get the ReferenceError

DigiProduct started a new conversation Countdown Is Not Defined

I'm trying to use countdown.js with Laravel and having a few issues and hope soeone can point me in the right direction.

I'm using Laravel Mix, and have npm run watch going (I have even tried rerunning that)

I installed the package using the following command

npm install countdown --save

In app.js, I added the following

import countdown from 'countdown';
window.countdown = countdown;

In my blade file, below the main part of the html right before the body tag, I added

<script>
  console.log('about to use countdown');    
  mycountdown = countdown(new Date(2020,0,1)).toString();
  console.log(mycountdown); 
</script>

On the generated paged, in Chrome Dev Tools, I see the first console.log message and then I get the following error

Uncaught ReferenceError: countdown is not defined

Can anyone help me understand what I am doing wrong so I can correct this and avoid making similar mistakes in the future?

07 Feb
3 months ago

DigiProduct left a reply on Larecipe - Write Gorgeous Documentations Like Laravel.

Looks awesome

Can videos be embedded in the docs?

02 Feb
3 months ago

DigiProduct left a reply on Laravel And Vue Deployment

I'm just doing something very similar today ... I need to test another site posting into my development site.

I had previously heard about ngrok but never used it, so I just tried it and had my local development site available via the internet within 2 minutes of downloading the ngrok application.

It's amazingly simple ... literally couldn't be simpler.

  1. Download Ngrok from http://ngrok.com

  2. Extract the downloaded zip.

  3. At your command prompt, just type ngrok http 8000 ( or whatever port number you are using )

4 You'll get a screen of info, and you'll see 2 lines of "forwarding" info (one for http and one for https) ... it'll be something like

fowarding http://cc7c23ae.ngrok.io -> localhost:8000 fowarding https://cc7c23ae.ngrok.io -> localhost:8000

  1. Type the forwarding url into a browser on any machine connected to the internet, and you'll be connected to your local development site.

The connection lasts for up to 8 hours ... or until you stop the ngrok application on your computer.

That's it ...it's free, fantastically simple and amazingly useful.

31 Jan
3 months ago

DigiProduct left a reply on New Video Releases Aren't Showing Up In The Feed

Video 23 of the series Build A Laravel App With TDD is now available if you look at the feed ...

As well as in the feed, it also shows correctly on the main series page https://laracasts.com/series/build-a-laravel-app-with-tdd

But, just like video 22 of the series, it doesn't show on the search page https://laracasts.com/search

DigiProduct left a reply on Is There A Video That Shows Using SweetAlert?

I just installed it on a Laravel 5.7 project a few days ago and it was very easy.

I just followed the steps on the Github page.

DigiProduct left a reply on New Video Releases Aren't Showing Up In The Feed

The latest video (Project Activity Feeds: Part 3) shows if you access the full course list, and it shows in the feed ... but it does not show if you go via the "What's New" link