DigiProduct

DigiProduct

Member Since 6 Months Ago

Experience Points 28,290
Experience Level 6

1,710 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 266
Lessons
Completed
Best Reply Awards 1
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

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

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

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

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    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 Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

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

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

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

13 Jul
2 days ago

DigiProduct left a reply on Error In Migration

@Snapey @aurawindsurfing @nakov Many, many thanks for your time guys ...

I'm going to admit defeat and just make my changes manually.

I've wasted too much time on this .. and I've wasted too much of YOUR time as well.

Your assistance, and advice, was much appreciated

DigiProduct left a reply on Error In Migration

@nakov yeah, same engine.

Everything's the same.

I've even tried using a previous migration that successfully worked to add a column .. and just changed the single line from a column to my foreign key line ... so only a single line of code different between the 2 files

DigiProduct left a reply on Error In Migration

Ok, so some progress now ...

I have a local MySql installed .. and if I run migrations against that they work perfectly.

But against my MySql database at Digital Ocean, the same migrations are not working.

Yet, a migration containing just a new column (on the SAME table) works fine on my DigitalOcean server.

Does that give anyone any new ideas on what I could look at next?

DigiProduct left a reply on Error In Migration

@Nakov I get that info inside Sequel Pro already ... and it doesn't contain the key.

DigiProduct left a reply on Error In Migration

@nakov yes, I've disconnected Sequel Pro and reconnected it.

And, I've checked that the migration exists, and is in the migration table ... and I can even see it received a new batch number in the migration table.

And, yes, I have checked that the data types of the columns in each table are the same.

DigiProduct left a reply on Error In Migration

@aurawindsurfing No. I haven't tried that ... but, at this stage, I'm willing to try just about anything ... although I'd prefer to figure out the real problem for the issue so that I can move forward secure in the knowledge that it's not going to come back and bite me during a future migration.

Will that affect any data that I have in my tables? Is it safe to do that with a database already containing data?

Really, I can solve this current situation by just manually creating the key ... but that doesn't help me understand the issue and how to stop it re-occurring.

DigiProduct left a reply on Error In Migration

@aurawindsurfing I'm looking at it via Sequel Pro.

On other tables where I've used the same migration, and created a foreign key, I see a new key in the INDEXES section when I view the table structure using Sequel Pro.

However. for this table, I see nothing new in the INDEXES section.

Additionally, if I look at TableInfo tab in Sequel Pro at the Create Syntax, then just below the PRIMARY KEY in the listed structure, I expect to see the new key appear ... but I don't ...

And, I have absolutely no clue what else I can check ... hence why I asked the question ...

It's so frustrating because it should just work .. but it doesn't ... so I must be missing something really obvious but I can't figure out what ...

DigiProduct left a reply on Error In Migration

@snapey @aurawindsurfing I was expecting to see a change in the structure of the database ... but I see no change at all.

If I add a column, using a migration, I see the column appear.

But using what I showed there's no new key appearing.

DigiProduct started a new conversation Error In Migration

This has to be my own error, but I thought I had this right and I'm hoping someone can quickly advise me what I've done wrong ....

I have the following migration, and the migration has been processed but nothing has changed to the structure of the database ... so, I must have written it wrong ...

    public function up()
    {
        Schema::table('leads', function (Blueprint $table) {
            //
            $table->foreign('location_id')->references('id')->on('locations');
        });
    }

I already have a column called "location_id" in my table "leads" ... and I have a table named "locations" which contains a column named "id"

Can anyone tell me what I'm doing wrong?

11 Jul
4 days ago

DigiProduct started a new conversation Get Auth Id Of An API User

How can I get the Auth:id of the authorised API user?

I'm using Laravel Passport ,and so the user is authorised for the API by the Token ...

But I want to return only the data that is "owned" by that userid ...

So, how can I get that userid when they access the the API with a token?

23 Jun
3 weeks 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
3 weeks 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
3 weeks 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
1 month 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
2 months 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
2 months 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
2 months 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
2 months 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
2 months 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 months 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 months 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 months 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
2 months 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
3 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>