squibby

squibby

Web Developer at YUDU

Member Since 4 Years Ago

Clitheroe

Experience Points
23,520
Total
Experience

1,480 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
156
Lessons
Completed
Best Reply Awards
9
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.

Level 5
23,520 XP
Feb
06
2 weeks ago
Activity icon

Replied to Throttle Middleware Not Working As Expected...?

Yeh i'm thinking that now as well....

Activity icon

Replied to Throttle Middleware Not Working As Expected...?

could it be making a preflight perhaps??

Activity icon

Replied to Throttle Middleware Not Working As Expected...?

I am just testing in postman at the moment to a post route.

Activity icon

Started a new Conversation Throttle Middleware Not Working As Expected...?

I have some throttle middleware which i specify in the constructor of an api controller. I want to restrict the calling of this route to only allow 1 api call per each 5 minutes. Any more than that should receive a 429 too many requests error.

This code does not work as expected. It does not allow any calls. It gives 429 no matter what.

    public function __construct()
    {
        $this->middleware('throttle:1,5');
    }

However if I change it to:

    public function __construct()
    {
        $this->middleware('throttle:2,5');
    }

It works as I expect and allows 1 per 5 minutes. Does anyone know why? Surely the 1,5 is the way it is intended to be written. I would like to know why if anyone knows.

Thanks..

Jan
31
3 weeks ago
Activity icon

Awarded Best Reply on How To Dispatch A Job From A Command?

You can forget the job completely and just make the Mailable class queueable. This would be less code and might work for you.

Jan
30
3 weeks ago
Activity icon

Replied to How To Dispatch A Job From A Command?

You can forget the job completely and just make the Mailable class queueable. This would be less code and might work for you.

Jan
07
1 month ago
Activity icon

Awarded Best Reply on Laravel Forge Websocket For All Clients

Laravel websockets does have multi tenancy out of the box if I remember. You could use it for multiple projects and keep it on separate server. I have used it and it is great but can a bit complex to set up depending on what you are doing.

Pusher does have a free tier so thats a great option too if you are not using it too heavily I would go with that.

Activity icon

Replied to Laravel Forge Websocket For All Clients

Laravel websockets does have multi tenancy out of the box if I remember. You could use it for multiple projects and keep it on separate server. I have used it and it is great but can a bit complex to set up depending on what you are doing.

Pusher does have a free tier so thats a great option too if you are not using it too heavily I would go with that.

Dec
19
2 months ago
Activity icon

Awarded Best Reply on Custom Code In Scheduler

Don't put all the code in the scheduler like that. Its ugly and not necessary. How about just having a command that fire a job, then in the job you run your affiliatenetwork:fetchrevenueperiod command which determines the other parameters when it runs. This will keep it all nice and clean.

Dec
12
2 months ago
Activity icon

Replied to Custom Code In Scheduler

Don't put all the code in the scheduler like that. Its ugly and not necessary. How about just having a command that fire a job, then in the job you run your affiliatenetwork:fetchrevenueperiod command which determines the other parameters when it runs. This will keep it all nice and clean.

Nov
19
3 months ago
Activity icon

Replied to Laravel Dusk Tests On Travis CI Doesn’t Persist Session Data Across Redirects

@jonnybarnes was this solved by updating the http_only parameter in the session.php config file or something else? I am having a similar issue with this on Travis CI...... Thanks.

Nov
14
3 months ago
Activity icon

Awarded Best Reply on Migrations Broken After Updating From Laravel 5.7 To 5.8

I have solved this by specifying exactly doctrine/dbal version 2.9 in my composer file. After downgrading this package everything worked as normal.

Thanks.

Activity icon

Replied to Migrations Broken After Updating From Laravel 5.7 To 5.8

I have solved this by specifying exactly doctrine/dbal version 2.9 in my composer file. After downgrading this package everything worked as normal.

Thanks.

Activity icon

Replied to Migrations Broken After Updating From Laravel 5.7 To 5.8

@tray2 @nomguy Thanks for the replies.

@tray2 - There are no values set for the column, nothing has been seeded. The migrations fail at this point before i get to run the seed.

@nomguy - response column is originally string, but being changed to integer.

Nov
13
3 months ago
Activity icon

Replied to Migrations Broken After Updating From Laravel 5.7 To 5.8

I am changing a column type from string to integer. If I comment this migration out (and another similar one) it runs with no problems.


<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class ChangeResponseColumnTypeOnMyTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('mytable', function (Blueprint $table) {
            $table->integer('response')->change();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('mytable', function (Blueprint $table) {
            $table->string('response')->change();
        });
    }
}
Activity icon

Started a new Conversation Migrations Broken After Updating From Laravel 5.7 To 5.8

Hi - I am upgrading from Laravel 5.7 to 5.8. So far everything great except now when migrating to run my test to check everything is working I have an error...

Illuminate\Database\QueryException : SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CHARACTER SET utf8mb4 DEFAULT NULL COLLATE utf8mb4_unicode_ci' at line 1 (SQL: ALTER TABLE participants CHANGE response response INT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE utf8mb4_unicode_ci)

I have located the file which causes the error and the migration is simply change 1 column from a string type column to integer column.

All was working fine in 5.7 for many months. It now seems there is a problem performing this task now in 5.8? I though maybe it was I was running an older version of doctrine/dbal which maybe not compatible with Laravel 5.8 but i checked and I am running 2.10 which should be ok I think...

Can anyone suggest why the migrations will be failing and how I could fix it?

Thanks.

Nov
08
3 months ago
Activity icon

Started a new Conversation Php Artisan Serve & - What Does '&' Do?

So I have seen this in various CI scripts - what does the '&' mean at the end?

php artisan serve &

Thanks.

Nov
07
3 months ago
Activity icon

Replied to TravisCI Build DB Connection Times Out

@xtremer360 did you ever figure this out?

Nov
04
3 months ago
Activity icon

Replied to How To Check Queue Status Of Laravel Forge From Within Laravel

@jaytee nice thanks. I will have a look through the links.

Activity icon

Replied to How To Check Queue Status Of Laravel Forge From Within Laravel

Hi @jaytee i'm familiar with Horizon but i'm not using Redis which is required for Horizon and thats not what i'm looking for. I just want to manually check the queue status myself ideally so I can then pass that information somewhere else. Thanks.

Activity icon

Started a new Conversation How To Check Queue Status Of Laravel Forge From Within Laravel

I want to be able to show on a health dashboard the status of my various queues and processes. I have set up my server with Laravel forge and setup the database queues there in the queues section.

So.. is it possible to run a command and list all of the queues that are currently setup and running? Or perhaps to run a command to see if a specific queue is up and running and how many processes.

Has anyone done anything like this before?

Thanks.

Oct
25
3 months ago
Activity icon

Awarded Best Reply on Composer Install Not Working With New Forge Site?

This was down to an out of date lock file being committed to source control which blew up any new deployments I was making.

Installing dependencies (including require-dev) from lock file Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.

Activity icon

Replied to Composer Install Not Working With New Forge Site?

This was down to an out of date lock file being committed to source control which blew up any new deployments I was making.

Installing dependencies (including require-dev) from lock file Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.

Oct
18
4 months ago
Activity icon

Started a new Conversation Composer Install Not Working With New Forge Site?

Previously I had no problem creating a site in forge, then ticking the box to ensure composer dependencies are installed. Now I have found that a new site fails if I check that box. However if i uncheck the box it installs fine. I then have to manually SSH into the server and run sudo composer install myself.

How can I allow composer to install via forge like it previously did? Has anyone else seen this?

Thanks.

Activity icon

Replied to How To Change Env Variable / Config In Dusk Test?

@gotesla no i am only running upto 5.7 in my projects. But I will keep an eye on this. Thanks for the info.