andyscraven

andyscraven

Member Since 4 Years Ago

Experience Points 8,145
Experience Level 2

1,855 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 179
Lessons
Completed
Best Reply Awards 0
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.

04 Nov
10 months ago

andyscraven left a reply on Spark "Session Expired" When $usesApi = False

Boy oh Boy am I glad I found his post. I would never have thought that was the reason. Thanks @manshu

30 Oct
10 months ago

andyscraven left a reply on Addon Products?

@benmag @Cronix Thanks for your posts.

I really need different Subscription periods. 3, 6 and 12 months. Has anybody done a library for adding this capability to Spark?

Within Stripe you can specify 3 and 6 months no problem but Spark seems locked to a month or a year.

25 Oct
10 months ago

andyscraven started a new conversation More Than Just Monthly And Annually

Hi

Has anybody added different intervals for subscription lengths?

Ideally I want, 3, 6 and 12 months.

Stripe can handle this but Spark defaults to a month and you can only override with yearly()

Thanks

Andy

andyscraven left a reply on None Periodic Billing Plans

I would like to know if that is possible also. Although I would like 3 & 6 months and yearly but not monthly.

20 Oct
10 months ago

andyscraven started a new conversation Use Case Questions

I have a project where Laravel Spark feels like the perfect starting point. I have searched Google for some examples of use cases but as yet have not found any so thought I would ask here.

I am at the planning phase and putting together the development timetable.

The project has different types of users and payment plans. Payments to be taken via Stripe.

  1. Single User Licence with 3, 6 or 12 month plans. That seems easy with Spark.

  2. Agencies that buy a block of licenses directly from the company and can then add users as they sell them. The issue here is:

a) I need a way for the agency to allocate a license to a user, via email address as the service is delivered by Slack channels.

b) When they sign up the user they do not need to pay anything as they have prepaid but I do need their number of available licenses to reduce each time.

The service can be offered in different languages for both (1) and (2) above so I need a way of being able to specify the following:

eg:

a) Single User on a 3, 6 or 12 month license in English

b) Single User on 3, 6 or 12 month license in Dutch etc. (Many languages available)

c) An Agency User on a 3, 6 or 12 month license in a specific language.

Finally, there already exists a single page website for his project and I would like the base url for non logged in users to be this page. It is built using Bootstrap 4 and I am assuming that this is easy in Spark.

As I mentioned I am at the planning phase and am attempting to assess how much of the above can be handled out of the box by Spark and how much will be bespoke.

I hope to get my hands of Spark tomorrow but am hoping existing Spark users can advise me.

Thank you.

18 Oct
10 months ago

andyscraven started a new conversation Wildcard Let's Encrypt

Hi

I have an existing Laravel build using Forge and Digital Ocean.

I want to use Spark to allow me to take Stripe payments easily.

My understanding is that you cannot incorporate Spark in to an existing Laravel build so I was thinking to create another site on the same DO server using Forge and have it as a subdomain. mysite.com, sales.mysite.com

Now that Let's Encrypt can handle Wildcards where would I create the Let's Encrypt certificate? On the main site or the sub domain site?

Hope that makes sense? :-)

Thanks

Andy

12 Apr
1 year ago

andyscraven left a reply on Editing A Command On Dev While Scheduler Running

@Snapey You are right it is a good solution. I will mark it as the best solution and thank you.

andyscraven left a reply on Editing A Command On Dev While Scheduler Running

@Snapey Yeah I guessed that :-)

But once it goes to Production I only need to read from it.

If I need to write to it I can make a copy and use it locally or simply start it from scratch while I test.

Thanks for you help. I didn't think there was a short term solution but thought I'd ask.

andyscraven left a reply on Editing A Command On Dev While Scheduler Running

@Snapey Yeah, once we get to production this problem will go away as I can connect my development setup to the production DB remotely for testing.

andyscraven left a reply on Editing A Command On Dev While Scheduler Running

@spekkionu I cannot stop it as the data must be contiguous and that is what I need to be testing ongoing.

@Snapey It actually runs various tasks at different intervals using the cron() command.

It is just a pain as I need to leave it running, while at the same time developing.

If only there was only a way to tell Laravel to ignore a Command when it Autoloads.

andyscraven left a reply on Editing A Command On Dev While Scheduler Running

Yeah but I need to be gathering data to test with. It is inherent within the system. Ha!! That sounded like a Monty Python quote :-) "Come and see the violence inherent in the system! Help help I'm being repressed"

andyscraven started a new conversation Editing A Command On Dev While Scheduler Running

Hi

This only applies to when I am developing using Homestead but I have an issue.

The problem

I have a number of commands running in the Scheduler and I am editing a Command that is not currently being run.

When the scheduler runs, Laravel autodetects the Commands in Kernel.php in commands() using:

            $this->load( __DIR__ . '/Commands' );

The problem is that if I am half way through writing some code this fails, and so does the scheduler so none of my tasks are getting run.

Is there a way to stop this?

Thank you.

11 Mar
1 year ago

andyscraven left a reply on Get The Last Entry Of Each UID Type

Th StackOverflow users were all over this is minutes so I now have a solution, which I will post here.

This worked:

    $allRowsNeeded = DB::table("table as s")
        ->select('s.*')
        ->leftJoin("table as s1", function ($join) {
            $join->on('s.uid', '=', 's1.uid');
            $join->on('s.created_at', '<', 's1.created_at');
        })
        ->whereNull('s1.uid')
        ->get();

However I got an Access Violation so I had to go in to config/database.php and set

'strict' => false,

inside the 'mysql' config, which removes ONLY_FULL_GROUP_BY from the SQL_MODE.

andyscraven started a new conversation Get The Last Entry Of Each UID Type

I have a table that has 100's of entries for over 1000 different products, each identified by a unique UID.

ID  UID                 MANY COLUMNS    CREATED AT
1   dqwdwnboofrzrqww1   ...             2018-02-11 23:00:43
2   dqwdwnboofrzrqww1   ...             2018-02-12 01:15:30

3   dqwdwnbsha5drutj5   ...             2018-02-11 23:00:44
4   dqwdwnbsha5drutj5   ...             2018-02-12 01:15:31

5   dqwdwnbvhfg601jk1   ...             2018-02-11 23:00:45
6   dqwdwnbvhfg601jk1   ...             2018-02-12 01:15:33

...

I want to be able to get the last entry for each UID.

ID  UID                 MANY COLUMNS    CREATED AT
2   dqwdwnboofrzrqww1   ...             2018-02-12 01:15:30
4   dqwdwnbsha5drutj5   ...             2018-02-12 01:15:317
6   dqwdwnbvhfg601jk1   ...             2018-02-12 01:15:33

Is this possible?

I have tried using DB: as well as Eloquent but so far I either get zero results or the entire contents of the Table.

Andy

23 Jan
1 year ago

andyscraven left a reply on Installing Trader On Homestead And Via Forge

Hmmm!! No experts around. Guess I will have to solve this myself. When I do I will post it.

I am not a pecl expert and don't want to mess up my VM or Droplet :-)

16 Jan
1 year ago

andyscraven started a new conversation Installing Trader On Homestead And Via Forge

Hi

I want to install the latest version of Trader, 0.4.0 but ran in to issues as I have found it difficult to find a new post regarding this.

http://php.net/manual/en/book.trader.php

I am not a server person but know enough to be dangerous, so I thought I would ask the experts before I moved forward.

I need to install trader on my homestead, which is an older version 0.5.0 and have a Digital Ocean droplet, set up via Laravel Forge. Should I first update Homestead and would this upgrade cause me any issues, do you think?

Trader says it now works with PHP7 but I ran into issues when trying to use pear to install it.

Any ideas?

Thank you in advance.

Andy

21 Jul
3 years ago

andyscraven left a reply on Move Uploaded File To S3

@lukaskorl your answer worked for me!

andyscraven left a reply on Homestead & Uploading Large Files (L4.2)

@Bashy that fixed it for me! Thanks.

09 Sep
4 years ago

andyscraven left a reply on How To Grab Files From Different Domain Via Elixir?

I could really do with the answer to this question AND I also need to know how to copy files using mix.copy where the source directory is outside my project root?

05 Mar
4 years ago

andyscraven left a reply on Which TDD Platform?

@kfirba Great articles, thanks for sharing.

I am loving Behat. I am starting a complete rewrite of a software system I use every day and building it using the BDD approach helps me focus on exactly what I want to achieve.

04 Mar
4 years ago

andyscraven left a reply on Behat Laravel 5 Extension

@ChrisB BOOM!!!! That did it, thank you.

andyscraven left a reply on Behat Laravel 5 Extension

Hmmm!! It is definitely in my file but I am still getting the error.

I still get:

[Symfony\Component\Debug\Exception\FatalErrorException]
Maximum function nesting level of '100' reached, aborting!

Very odd!

andyscraven left a reply on Behat Laravel 5 Extension

@blackbird I am having the same issue. I added the xdebug.max_nesting_level = 500 in to the /etc/php5/cli/conf.d/20-xdebug.ini file inside Homestead but I still have the issue.

Like you I am using PHPStorm. Which php.ini file did you add the line to?

03 Mar
4 years ago

andyscraven left a reply on Which TDD Platform?

@kfirba I have just been using Behat with the Mink extension and totally agree with you that for DDD stuff it is really cool.

@kajetons I actually prefer PHPSpec to PHPUnit.

andyscraven left a reply on Which TDD Platform?

@kfirba Very interesting I will watch the Behat videos again and give it a go on my own. Thanks.

andyscraven left a reply on Which TDD Platform?

Thanks for the reply @kfirba, like you I am keen to show that I have an understanding of Domain Driven Design.

That is a good idea to use PHPSpec and either Behat or Codeception.

So which one? Behat or Codeception? Which is better for ones CV?

andyscraven started a new conversation Which TDD Platform?

Hi

Having watched a lot of videos on Laracasts Jeff uses a number of Platforms, PHPUnit, PHPSpec, Behat and Codeception.

I know he likes some of them but I am unsure which is his favourite and which to use on my new Project. My new Project is going to be written totally by me using Laravel 5 and is a shopping platform but I also want to use it as an addition to my CV.

So I have different reasons for my choice.

  1. Ease of use
  2. Adding to my CV

So which platform would you recommend?

Thanks Everyone.

25 Feb
4 years ago

andyscraven left a reply on Bootstrap Child Themes With SASS

Yeah I have got Bootstrap in via Bower. In fact I am using Homestead so it is already installed.

andyscraven left a reply on Bootstrap Child Themes With SASS

The filenames can all be sequential and they can all be in the same directory so using code will do it.

On the main bootstrap site their builder is using LESS, do you know of a SASS equivalent?

andyscraven left a reply on Bootstrap Child Themes With SASS

Yeah, good idea I will look in to that.

Do you know of any good Bootstrap SASS Variable generators, if you know what I mean?

andyscraven left a reply on Bootstrap Child Themes With SASS

Yeah that is how I do it currently but ideally I want to be able to create 64+ different SASS files with the variables in them and have Elixer create the 64 CSS files, if I can.

andyscraven left a reply on Bootstrap Child Themes With SASS

Thanks for the reply. I wondered if there was a structured way of doing it using SASS files using Elixir as I haven't used it before. @JeffreyWay would know! :-)

24 Feb
4 years ago

andyscraven started a new conversation Bootstrap Child Themes With SASS

Hello All,

I have a project that requires 64+ Child themes with Bootstrap 3 (actually 64+ different BS3 minified css files) as the software receives requests from multiple domains, each with their own BS3 colour scheme allocated.

Before using Laravel (CodeIgniter) I simply had a directory with all of the BS3 css files in and the software sent the right file name to the view.

However, I want to make use of Gulp and SASS in the latest version of the software written in Laravel but I will still need to be able to create all of the different BS3 css files.

Is there a good way to do this so that I end up with all of the BS3 css files created?

Or even a right way to do this?

Thank you.

14 Feb
4 years ago

andyscraven left a reply on Vagrant Shared Directory Not Working

I am still keen to understand why my install did not go correctly and it may help others that have had the same issue.

13 Feb
4 years ago

andyscraven left a reply on Vagrant Shared Directory Not Working

Aha!! Thanks for that. So what do I delete to start again? Presumably I can leave Virtual Machine and Vagrant or should I scrap the lot and stat over?

andyscraven left a reply on Vagrant Shared Directory Not Working

Thanks for your reply. I will check it out. Did I watch them in the wrong order hence the problem or is there something actually wrong?

andyscraven started a new conversation Vagrant Shared Directory Not Working

Having just watched the "Get Off MAMP" video and installed Vagrant and Virtual Machine I am having an issue.

After a clean install, with everything working, suddenly my local projects directory ("websites" in the video) is not sharing files with vagrant. When I ssh into vagrant, all I see is a postinstall.sh, and if I try to touch foo.txt, it does not appear in my projects director. What could be happening?

I do not want to continue until I get this working.

Thanks everyone.