psmail

Member Since 5 Years Ago

Melbourne, Australia

Just plugging away ... at Big Red Zed

Experience Points 21,830
Experience Level 5

3,170 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 204
Lessons
Completed
Best Reply Awards 8
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.

06 Jun
2 years ago

psmail started a new conversation Digital Ocean Announce Cloud Firewalls

Hi. And forgive my ignorance in advance. When I saw this announcement in my inbox I got quite excited. I have shied away from IaaS providers in preference to PaaS providers largely due to security (and the fact that they update / patch their own systems). I'm not certain if anyone agreed with me on that point or if Forge does all of this anyway (there's my ignorance again) but I thought I'd included a link here in case anyone else finds it useful - https://blog.digitalocean.com/cloud-firewalls-secure-droplets-by-default/?utm_medium=email&utm_source=local&utm_campaign=CloudFirewallsAnnounce

29 Nov
2 years ago

psmail left a reply on How Stripe Treats Plan Downgrades

Thanks for responding. Yeah ... that article suggests that my understanding was correct - that credits are applied to future, updated subscription plan selections until the amount of credit is expired.

28 Nov
2 years ago

psmail started a new conversation How Stripe Treats Plan Downgrades

Hi. I can't quite work out how Stripe treats plan downgrades. Using Laracasts as an example -

  • Let's say I sign up on a monthly, $9 plan
  • Two weeks later, I decide to upgrade to an $86 plan. I understand that Stripe will charge an extra $77 ... less a little bit due to pro-rating out the two weeks
  • Two weeks later I downgrade again to a monthly $9 plan

What happens now? As best I can tell, I don't get a credit / refund. Instead, I am guessing that I get about 8 months worth of monthly subscription until I am billed again in about 8 months time at the monthly $9 rate. Am I correct?

A bit more - lets say I'm six months in ... I'm still on my my $9 monthly plan but, remember, I had an $86 yearly plan about five months ago so I still have some credit. If I now cancel, do I get a refund? Related to that, on a site like Laracasts, does that mean that I'd need to actually request the refund of the remaining credit?

BTW ... I am on a yearly plan at LC but I have no intention of downgrading. I'm doing some Stripe implementation and I am just using LC as a frame of reference.

Many thanks.

27 Nov
2 years ago

psmail left a reply on I Don't Understand The Stripe Date / Datetime Format

Fantastic. Thanks for helping out.

26 Nov
2 years ago

psmail started a new conversation I Don't Understand The Stripe Date / Datetime Format

Hi.

If I retrieve subscription data from stripe using their API I can see a property of "current_period_end" and it has a value of 1482779335. I don't recognise this as a date or date time format.

What is it? Do I need to do anything to it before I can store it in a database?

Many thanks.

11 Oct
2 years ago

psmail left a reply on Grandfathering With Spark

That looks like it @willvincent. Oh I miss the Laravel community (I've been away for while)! Thats mate.

psmail started a new conversation Grandfathering With Spark

Hi. Sorry if I've missed something - I searched the forum for it and didn't find anything. Does Spark support grandfathering? Thanks.

04 Feb
4 years ago

psmail left a reply on Load Multiple JavaScript Libraries From A Popular CDN Or Merge Into A Single File?

Thanks ... your feedback has helped me to reach the conclusion that I'll use common library CDNs and perhaps move some less common ones to my site and minify and concatenate from there.

Thanks for your collective help.

psmail left a reply on Laravel 6 And The Upgrade Path

Hopefully I come across as the moderate I hope to be -

  • I, too, have found the leap from L4 to L5 jarring.
  • 3 hours is not that bad if your app is sizable. I'll reserve my judgement until I update my own L4 apps.
  • Sure, people whinge about change - me too. Human nature I suppose. But I think it might have been handled better. Planned deprecation and prior, ongoing and timely notification of planned changes - and a roadmap - would help. Other frameworks do this.
02 Feb
4 years ago

psmail started a new conversation Load Multiple JavaScript Libraries From A Popular CDN Or Merge Into A Single File?

Hi

I know this has been covered by JW before, but I am keen to get some clarification about the benefits -

  1. If you only had is it better to load multiple JavaScript libraries from a popular CDN or merge into a single file served yourself?

  2. If you could mix and match, would you minify / combine your own files and grab the popular libraries you used from a CDN or would you download and minify the whole lot?

Many thanks

08 Dec
4 years ago

psmail left a reply on Mac Terminal Tips

OK ... I've converted to oh-my-zsh. Cheers.

psmail left a reply on Need To Refactor My Subdomain Wildcard Setup...

@nfauchelle Is that because you're not testing? Or you are and it is all going fine?

26 Nov
4 years ago

psmail left a reply on Forge On Custom VPS? Is It Even Supported?

It might help if you state who your VPS provider is.

psmail left a reply on What Lib Do You Use To Display Graphs?

Google Charts - but it is not so simple.

Charts.js is really simple, but only does really simple graphs. And there is a Laracast on it.

psmail left a reply on Are There Other Sites As Awesome As Laracasts?

Railscasts for Rails - though it's not maintained at the moment ... And who knows when it will be - has high quality content. GoDjango for Django, though the quality is nowhere near Laracasts.

24 Nov
4 years ago

psmail left a reply on Forge On Custom VPS? Is It Even Supported?

I had / have the same or similar problem on an EC2 instance. I too have raised a support email. Or two.

Interestingly, I fired up a couple of Vultr instances ... No problems.

21 Nov
4 years ago

psmail left a reply on How To Secure An API Using OAuth

+1. I'd put a larger number but I believe it to be a breach of etiquette.

19 Nov
4 years ago

psmail left a reply on I Would Love To See An Episode On UUID's, When To Use Them And How To Implement Them

I reckon JW covered the slug bit in his L5 lessons, but it's perfectly applicable to L4. As for crating and saving the UUID ... I'd imagine tapping into the Eloquent creating event is the ticket.

18 Nov
4 years ago

psmail left a reply on I Would Love To See An Episode On UUID's, When To Use Them And How To Implement Them

Igoring the packages - because you mentioned you were aware of them - couldn't you just treat a guid in a similar way to a slug?

I say this because I think I've seen articles suggesting that uuids should not be used as a replacement for IDs. I forget the reasons why.

psmail left a reply on Need To Refactor My Subdomain Wildcard Setup...

@nfauchelle - yeah, I've done this too. And I like it ... But I am finding testing more difficult because you can't really test a repo and inject it with dependencies - such as a subdominant data limited - instead you test the model directly. How are you dealing wit this?

psmail left a reply on Need To Refactor My Subdomain Wildcard Setup...

I've gone withe a wildcard subdomain on one of my apps and yes, I added the subdomain to every method of every controller. I found it a little painful, but not prohibitively so.

If there is another option I'd love to hear about it.

As an aside, if I had my time again I reckon I'd have chosen a url prefix over a subdomain - like Basecamp do - due to slightly easier deployment, deployment and SSP certificate cost. I've also gone with a user based approach with my most recent app - like Google do - and this has been the easiest of all do develop and does not require the injection of the sudomain value into controller methods you describe here. Though I completely understand why some would like to be able to present a tenant specific sub domain to their clients. I'm tempted to fake that type of functionality, like Google do.

16 Nov
4 years ago

psmail left a reply on Is A 3 Way Pivot Possible?

@bestmomo - I will definitely check that out.

While three way pivots are perfectly valid in ER modelling, they aren't well supported by Laravel (or any other framework, as best I can tell) out of the box.

Now to check out that package ...

10 Nov
4 years ago

psmail left a reply on Whoops! Removed From Laravel 5?

@codedungeon. No. I am saying there is a reason - Taylor's own words as per a recent live podcast. I just can't remember it.

psmail left a reply on Way Generators Broken On L5 ?

I think there is a thread on this site where JW says he won't be doing a migrations package because the L5 are more comprehensive than those in L4. He then goes in to say that he'll miss the field options offered by his L4 migrations.

07 Nov
4 years ago

psmail left a reply on L5 - Where Is Waldo?

Yeah ... I heard Matt Stauffer talk about it. Hence, I figured it was an idea worth considering. Glad it is working for you, @rspahni

06 Nov
4 years ago

psmail left a reply on Whoops! Removed From Laravel 5?

I think I heard Taylor give the reason Whoops has been left out on the live podcast earlier today. Stuffed if I can remember what that reason was though.

psmail left a reply on My App Is Ready For Release, Now What?

Yeah they're pretty good. And some are surprising.

psmail left a reply on L5 - Where Is Waldo?

ever thought about picking a version of L5 and not updating it? That is, to pick a version of the build and not update it? Then you could make the required changes after L5 comes out of beta.

05 Nov
4 years ago

psmail left a reply on My App Is Ready For Release, Now What?

I have been watching a series of online lectures run by Stanford and YC called How to Start a Startup - some real names have taken part. That might give you some ideas.

04 Nov
4 years ago

psmail left a reply on Stripe API

@bashy I am pretty sure that storing currency as a decimal isn't best practice. Integer and divide by 100 is best practice as I understand it.

psmail left a reply on Where Are You All From?

Melbourne, Australia. And parochially so.

31 Oct
4 years ago

psmail left a reply on Repos And Testing - Just How Linked Are They

Thanks @JeffreyWay

Perhaps I am getting a bit confused about where to draw the line between unit tests and integration.

So, train of thought -

  • What about testing something that receives an Eloquent model? Isn't that a problem because you can't mock the eloquent model? Isn't a repo required in this instance because that can be mocked?
  • What about anything involving Auth:: (whether or not the facade is used)? How does this get tested with anything this side of a functional test? I asks because Auth may drive, say, which records can be accessed and testing which records can be accessed is an integration test but you can't mock the Auth::
  • I'm not sure I agree with your statement "I don't think they're linked to Laravel any more or less than ... frameworks that use ... Active Record ...". Looking into Rails and Django on this topic, repos are quite exotic to their respective communities. With Laravel, they are at the core of (almost) any project. Rails and Django - I think - are more prone to create very fat models. Now, I'm not saying this is better, but it is easier to understand.

I keep getting hung up on the pyramid diagram where unit tests represent the fat end and acceptance tests occupy the thin end. Is this paradigm in a state of flux at the moment, where integration tests might become a fatter piece of this pyramid (or trapezoid or whatever)?

BTW, on a recommendation from Twitter, I am watching the TDD: The Good Parts talk by Adam Wathan and I find it to be informative and interesting. But sure enough at the 31 minute mark he whips out a repository to make something unit testable. Ahhh ... but then he shows how moving from a unit test to an integration test ('real life collaborators' ... please tell me this means unit tests :)) to show how to not require a repo. Liking it.

I'm not trying to fan a flame. Trying to become a better programmer. But, gee, testing is taking ages to land.

30 Oct
4 years ago

psmail left a reply on Does Forge Run OK On A DigitalOcean 512Mb Instance

@omega - while I kind of knew most of what you highlighted (the links I included show this is the case) the way that you wrapped it up nicely into a recipe and added it to fstab so it is in play even after a reboot ... well that is pretty nifty. Hence, it is the answer to my question. Many thanks.

psmail started a new conversation Repos And Testing - Just How Linked Are They

Hi - a little bit off topic, but not hugely I hope.

I mentioned to JW via Twitter via conversation he was having with Phil S that I felt that repos and testing were very much linked in Laravel. Inferring, perhaps, in a way that other frameworks - certainly non-PHP frameworks - are not.

I understand you can choose not to use repos. And if you don't care about coupling to a model or eloquent or you're never going to swap out your database you might choose not to use a repo. But then, as I understand it, you're more likely than not to hit barriers to testing at some point if you don't use a repo. So with a Lavarel hat, one might choose to use repos for testability and not at all for decoupling. Indeed, as best I can tell this is what happens.

After a year of Laravel and Laracasts, is it still possible I am missing the point?

I look forward to your feedback.

psmail left a reply on White Screen Of Death

I had this happen to me.

While I did not fix it, per say, in the manner you'd like if I had my time again I'd go into Forge and copy the recipe for 'Update Nginx FastCGI Parameters' and run that in my Homestead VM.

I'd do this because about two days after I had my white screen Homestead problem I read that Matt Stauffer had a white screen problem on a server he had that was solved with this recipe. I figure it might apply to Homestead as well.

In the end I did not spend too much time on it - I wiped out my VM using vagrant destroy and brought it ups again using vagrant up. I did not lose too much, though of course customisation are indeed lost.

psmail left a reply on Vultr SSD Cloud Hosting

I am trying vultr out because they have a site in Australia, where I am located.

Not as polished as DO - I really like DO - but easy enough to use. The reviews on performance are generally very good but to my eye the difference would not sway me from DO. And the pricing is phenomenal. But, again, the difference to DO would not be enough to sway me because DO (and Linode's) pricing is already really good.

Using Forge with vultr went super smoothly, though I could not see that vultr had a private ip address. Incidentally, trying to use Forge with AWS in Oz did not work. PHP did not install. Just a little thing. I've raised a ticket for TO to look at.

So if DO - or Linode - were in Oz I'd use them. But Vultr are so I'll give them a try.

What I really do miss is a PaaS in Australia. Actually, there is Rails PaaS and there soon to be a Python / Django PaaS ... but PHP PaaSs are thin on the ground. AppEngine is here but to my mind that is perhaps more IaaS than PaaS. Same for AWS EB - and I don;t think AWS EB allows for Ubuntu anyway.

28 Oct
4 years ago

psmail left a reply on L5 PHP Annonations - I'm Sold

Yeah - route groups (in particular in relation to subdomains and prefixes) are a concern to me because I don't think it supports a dry approach.

Interestingly, I was poking around with Flask - the Python framework - and there they are ... annotations. Or whatever the Python equivalent is.

Not sold yet - but I'm still sitting it out until L5 goes beta. I just dropped Taylor a tweet in the hope finding when that might be - it must be soon.

27 Oct
4 years ago

psmail left a reply on Login Test With Codeception

Yeah, I think you do. I mean ... to see a page in real life you'd need to be logged in. And functional tests aren't a world away from real life user usage.

You can separate the login part of your Codeception code out into a helper file which you can reuse. That is how JW does it so there are examples of it on this site.

psmail left a reply on Polymorphic Many To Many

Yeah ... In pretty sure the tips and tricks section is for the offering or tips and tricks. Not so much the asking.

But you're not the only one to have done this - I think JW might have some tidying up to do.

26 Oct
4 years ago

psmail started a new conversation Does Forge Run OK On A DigitalOcean 512Mb Instance

Hi.

I stumbled across this turn of phrase on the DigitalOcean help wiki -

Heads Up: If you're installing Laravel on DigitalOcean's 512MB VPS, make sure you add a swapfile to Ubuntu to prevent it from running out of memory ...

You'll find that here - https://www.digitalocean.com/community/tutorials/how-to-install-laravel-with-nginx-on-an-ubuntu-12-04-lts-vps

Anyhow, my question is in three parts - - Is this article on DigitalOcean correct? - Does Forge do this for you when setting up a DigitalOcean instance of 512Mb? - What is the general experience of those on a 512Mb Forge instance?

In my instance, I currently run my production server on a 1Gb instance. I don't get stacks of hits today ... certainly fewer than a thousand, within the space of about four hours, usually. This works out to about a hit every 14 second or so - i.e. not intensive at all.

Many thanks

psmail left a reply on Thank You

I came across for NetTuts too.

JW does a great job and everyone else has been great at being patient and forthcoming with knowledge.

psmail left a reply on Laravel 5 Codeception Module

That was fast!

psmail left a reply on Enable Filters In Tests

Super useful.

24 Oct
4 years ago

psmail left a reply on Should I Use All Types Of Tests With Codeception?

My understanding is that you can't call the Laravel helper function if you use Codeception to run unit tests.

Be nice to know if I'm mistaken as is rather run all my tests from Codeception.

psmail started a new conversation How To Implement Authentication As A Service

Hi

Having read the Heroku Hackers pdf (yes ... of course I paid for it!) I'm intrigued by the notion of implementing software as a series of services.

I can conceptualise how to split up apps into distinct units, each of which run on their own machine and communicated via API. But I can't conceptualise how this works for authentication.

Further, if many apps could share one authentication server ... is this not spur cool?

Could someone explain to me how this might be done. High level is fine - just trying to grasp the concept.

Oh I don't have delusions of grander regarding scale. And I'm not talking about services in relation to Laravel and IOC etc.

Thanks for reading.

psmail started a new conversation Mac Terminal Tips

Hi. Hope this is useful ... stumbled across it and while I knew some of the things in here I did not know them all. Lots to digest.

http://furbo.org/2014/09/03/the-terminal/?utm_campaign=iOS_Dev_Weekly_Issue_162&utm_medium=email&utm_source=iOS%2BDev%2BWeekly

23 Oct
4 years ago

psmail left a reply on [L5] Codecept Broken Since Bootstrap/start.php Removed

I understand that phpunit can be used for acceptance testing, leveraging selenium. It's verbose and certainly less human-readable. But I believe it is an option.

22 Oct
4 years ago

psmail left a reply on [L5] Codecept Broken Since Bootstrap/start.php Removed

I've been thinking about this.

What do we think is going to happen with testing tools with L5? How long did itvtake for the L4 module to come out following the release of L4? Is Behat currently working with L5? Is there another option for acceptance testing?

21 Oct
4 years ago

psmail left a reply on Testing Books

JW also mentioned he is re-writing a test book - https://twitter.com/jeffrey_way/status/522834228304941056