DigiProduct

DigiProduct

Member Since 5 Months Ago

Experience Points 27,960
Experience Level 6

2,040 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 265
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.

23 Jun
3 days ago

DigiProduct left a reply on Laravel Cors Issue On Deployment

I fixed this .... somehow ... not 100% sure that this was it but ....

I added the following into the api middleware because the default installation of this package had only placed it in the web middleware

Barryvdh\Cors\ServiceProvider::class,

22 Jun
4 days ago

DigiProduct left a reply on Laravel Cors Issue On Deployment

Actually, I just discovered it is NOT a deployment issue ... I alos have issues on my local server .... it's actually a issue related to POST vs GET.

All my GETs are working but my POSTs are receiving CORS errors ... both locally and on the server.

My CORS.php file reads as follows:-


    /*
    |--------------------------------------------------------------------------
    | Laravel CORS
    |--------------------------------------------------------------------------
    |
    | allowedOrigins, allowedHeaders and allowedMethods can be set to array('*')
    | to accept any value.
    |
    */
   
    'supportsCredentials' => false,
    'allowedOrigins' => ['*'],
    'allowedOriginsPatterns' => [],
    'allowedHeaders' => ['*'],
    'allowedMethods' => ['*'],
    'exposedHeaders' => [],
    'maxAge' => 0,

I've also tried with explicitly allowing all the verbs as follows:-


    /*
    |--------------------------------------------------------------------------
    | Laravel CORS
    |--------------------------------------------------------------------------
    |
    | allowedOrigins, allowedHeaders and allowedMethods can be set to array('*')
    | to accept any value.
    |
    */
   
    'supportsCredentials' => false,
    'allowedOrigins' => ['*'],
    'allowedOriginsPatterns' => [],
    'allowedHeaders' => ['*'],
    'allowedMethods' => ['PUT, GET, POST, DELETE, OPTION'],
    'exposedHeaders' => [],
    'maxAge' => 0,

Neither worked for POST ... but both work for GET

DigiProduct left a reply on How To Make Animated Video Editing Or Animated Video Maker Tool? 3

You might find GSAP useful for creating the animations

DigiProduct left a reply on Laravel Cors Issue On Deployment

I just released something ... and I'm not sure if it's relevant ...

I have things working without CORS problems that defined in the web route (routes/web.php)

What isn't working are the routes that are defined in the api route (routes/api.php)

Do I need to set up something different for the API routes compared to normal WEB routes?

DigiProduct started a new conversation Laravel Cors Issue On Deployment

I implemented the Laravel Cors package

https://github.com/barryvdh/laravel-cors

and had it working successfuly on my local machine.

Now I've deployed it to a server, I'm getting CORS rejections again ...

I don't think that there is but ... Is there something I have forgot to run on the server during the deployment?

18 Jun
1 week ago

DigiProduct left a reply on Unable To Obtain LetsEncrypt SSL Cert (some Challenges Have Failed)

@alexjustesen This isn't a direct answer to your question, but you might find it helpful info anyway.

I wanted to implement a Laravel site via Digital Ocean and was having some difficulty with Laravel Forge, so did some searching here on Laracasts, and while doing that came across a thread about Forge Alternatives

https://laracasts.com/discuss/channels/servers/forge-alternatives

In that thread I found a mention of https://moss.sh and decided to try it out ... it does LetsEncrypt too ... and it's much easier than Forge

And, they have Live Chat too ... so you can get a real person to help you.

Hope that helps.

DigiProduct left a reply on Laravel Passport - Store Token In Cookies

@tomspeak I followed a set of tutorial videos by Andre Madarang that included connecting to a Laravel API from a Vue front-end.

https://www.youtube.com/playlist?list=PLEhEHUEU3x5q-xB1On4CsLPts0-rZ9oos

Because it's about Vue, there's only about 3 videos in the series that deal directly with the Laravel API ... and I know it's Vue rather than React ... but the concepts will be similar ...

You might find them useful to review.

DigiProduct left a reply on Forge Alternatives

@sotekno Your link to https://moss.sh/ really helped me.

I wanted to implement a Laravel site via Digital Ocean and was having some difficulty with Laravel Forge, so did some searching here on Laracasts, and while doing that came across this thread

I checked out https://moss.sh/ was inpressed by the docs and tutorials ... PLUS they have ONLINE CHAT for support ... and I chatted with a real live person ... a very knowledgeable and helpful person.

I went ahead and implemented my site using Moss and had it up and running perfectly in no time.

https://moss.sh/ is well worth considering.

27 May
4 weeks ago

DigiProduct left a reply on Access DigitalOcean From Windows With SSH

@artcore I tried that sql extension for VisualStudioCode but couldn't get it to work using SSH Tokens ... but thanks for mentioning it because I'll problem end up using it on other projects where I can use a username/password connection rather than tokens.

DigiProduct left a reply on Access DigitalOcean From Windows With SSH

@artcore I'm using Visual Studio Code ... I never thought to look in that, but, now that I look, it has a Terminal so maybe there's some options there that I can explore ... thanks.

Ha... never loooked closely enough in Laravel Forge (because I'm very new to it) ... I just found that I can edit the .env file directly in Laravel Forge ... so that's solved!

Brilliant ... thanks @artcore I found that when looking around for remoter database in Forge and probably wouldn't have notice it without your prompting ... appreciate it.

Now, I just need remote database access ...

DigiProduct left a reply on Access DigitalOcean From Windows With SSH

@mvd SSH is only available on the professional paid version of SQLyog unfortunately

DigiProduct left a reply on Access DigitalOcean From Windows With SSH

@mvd I already tried those Digital Ocean ones, and I get errors if I try to use a username and password as they show ... presumably because Laravel Forge has enforced the use of SSH Keys on the droplet ...

BUT .. I'll try looking at the other tutorials you mention to see if they help ... thanks for your suggestions ...

DigiProduct started a new conversation Access DigitalOcean From Windows With SSH

I'm a complete newbie as far as SSH goes ... never used it before in my life.

I'm just managed to install a Laravel project onto a Digital Ocean droplet using Laravel Forge.

Laravel Forge enforces the use of SSH keys for access (at least that's how I understand it)

Does anyone know of a simple step-by-step tutorial that would get me from complete beginner to being able to view and edit the .env file and view and edit the MySQL database?

Most of the stuff I'm finding when I searched is for Mac and based around username/password instead of SSH keys ....

Could anyone point me to a windows-based tutorial that could help me?

18 May
1 month 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
1 month 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
1 month 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 month 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 month 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 month 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
1 month 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
1 month 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
1 month 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
1 month ago
25 Apr
2 months 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
2 months 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
2 months 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
2 months 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
4 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
4 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
4 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
4 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
4 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
4 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