squibby

squibby

Web Developer at YUDU

Member Since 4 Years Ago

Clitheroe

Experience Points
24,390
Total
Experience

610 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
10
Best Reply
Awards
  • start your 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-in-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 Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist 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
24,390 XP
Aug
08
1 day ago
Activity icon

Replied to Deploy Laravel On Bluehost

Looks like you have a package which requires php version 7.2.5 or above. If you upgrade php it will solve this issue. Or remove / downgrade the package perhaps, but i assume you need the package for your app to function.

Aug
02
1 week ago
Activity icon

Replied to How To Update Environment/config Variable In Cypress?

Yes I have tried that and also return a new config call after setting the value, so in the response I assume it must have updated...

I am thinking maybe its not possible due the way cypress is running, similar to how Laravel dusk runs in a separate process but i'm not sure if thats what it is as i'm quite new to using cypress and still figuring it out.

Activity icon

Replied to How To Update Environment/config Variable In Cypress?

@bugsysha thanks, yes. It does not contain anything that helps with my question.

Jul
31
1 week ago
Activity icon

Started a new Conversation How To Update Environment/config Variable In Cypress?

Is there anyway to set config variables either before or during Cypress tests? It may not be possible but this is what I have tried...

I have a some routes like:

    Route::get('/_testing/config', 'Cypress\[email protected]');
    Route::post('/_testing/config', 'Cypress\[email protected]');

Then in controller:

   
    public function getConfig()
    {
        return config()->get(request('key'));
    }

    public function setConfig()
    {
        config()->set(request('key'), request('value'));
        return config()->get(request('key'));
    }

Then from a Cypress test I want to update some config like:

       cy.request({
            method: 'POST',
            url: '/_testing/config?key=somekey&value=somevalue',
            form: true,
        }).its('body').then((res) => {

            console.log(res);
            // 'somevalue'

        });

When running this the correct config item is returned and I assume should be then reflected in the app (I have some environment vars to toggle sections of a site) but... it doesn't work...

Is this simply not possible. to do in this manner? I do not really want to have multiple .env files and switch them depending on test types, although this could be possible as a last resort.

Thanks.

Activity icon

Awarded Best Reply on How To Switch .env File When Using Cypress?

I settled on this on this in the end which works very well.

beforeEach(() => {
    cy.exec(
        "if [ -f .env.cypress.backup ]; then echo 'It seems Cypress did not finish last time. Check the .env file to prevent loss of data.'; exit 1; fi"
    );
    cy.exec("cp .env .env.cypress.backup");
    cy.exec("cp .env.cypress .env");
});
Activity icon

Replied to How To Switch .env File When Using Cypress?

I settled on this on this in the end which works very well.

beforeEach(() => {
    cy.exec(
        "if [ -f .env.cypress.backup ]; then echo 'It seems Cypress did not finish last time. Check the .env file to prevent loss of data.'; exit 1; fi"
    );
    cy.exec("cp .env .env.cypress.backup");
    cy.exec("cp .env.cypress .env");
});
Jul
20
2 weeks ago
Activity icon

Replied to How To Switch .env File When Using Cypress?

I have seen this around. This could certainly work.. unless there is a better more baked in way of doing this?

cy.exec("cp .env .env.backup");
cy.exec("cp .env.cypress .env");
Activity icon

Started a new Conversation How To Switch .env File When Using Cypress?

Hi I am new to Cypress testing framework,

I am already very familiar with Laravel Dusk but am now working with Cypress. In Laravel dusk it is possible for the .env.dusk file to be switched in place as the .env file during testing. This is convenient as it enables a test database to be used instead of the development database.

How can I switch the .env file prior to running Cypress tests? I know how to call commands to test routes to migrate and seed the database, but am stuck on how to switch the env prior to the test beginning...

if anyone knows how to do this I would be very pleased to know how :-)

Jul
05
1 month ago
Activity icon

Replied to Cors Not Working Inside Middleware

Create middleware like below, and add to any routes.

     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request $request
     * @param  \Closure $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        return $next($request)->header('Access-Control-Allow-Origin', '*')->header('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS');
    }
Jun
28
1 month ago
Activity icon

Awarded Best Reply on Enable Enchant Spelling In PHP?

@braunson thanks but I gave up in the end with enchant. TinyMce have recommended Enchant but from my reading on it (the php docs are not too great on this topic) its seems a bit difficult to get working.

i had already tried the solution above and although Enchant was showing as enabled in phpinfo the enchant php methods were just not recognised...

I have though found a solution by installing php-spellchecker which can be found here:

https://tigitz.github.io/php-spellchecker/docs/getting-started/quick-start.html

Then customizing my response to what is expected by TinyMce. Hopefully that will assist anyone else in the same boat.

Thanks.

Jun
23
1 month ago
Activity icon

Replied to Enable Enchant Spelling In PHP?

@braunson thanks but I gave up in the end with enchant. TinyMce have recommended Enchant but from my reading on it (the php docs are not too great on this topic) its seems a bit difficult to get working.

i had already tried the solution above and although Enchant was showing as enabled in phpinfo the enchant php methods were just not recognised...

I have though found a solution by installing php-spellchecker which can be found here:

https://tigitz.github.io/php-spellchecker/docs/getting-started/quick-start.html

Then customizing my response to what is expected by TinyMce. Hopefully that will assist anyone else in the same boat.

Thanks.

Activity icon

Started a new Conversation Enable Enchant Spelling In PHP?

Hi,

I need to enable the Enchant php extension in PHP (I am using Homestead). Has anyone done this before or know anything about it??

I want to enable it so I can check spelling from the TinyMce text editor... I have looked in the php.ini file and cannot see any reference to it..

Does anyone have any idea how to enable it?

Thanks.

Jun
16
1 month ago
Activity icon

Replied to Can I Bundle Font-awesome Css Code With My Css Code Using Laravel-mix

Install via your package.json and require("@fortawesome/fontawesome-free/css/all.min.css"); in your app.js file.

Jun
15
1 month ago
Activity icon

Replied to Cannot Send Message Without A Sender Address (Laravel 7)

@bobbybouwmann @snackpack php artisan cache:clear will flush the application cache, but php artisan config:clear will clear the cached configuration files.

Jun
14
1 month ago
Activity icon

Awarded Best Reply on Cannot Send Message Without A Sender Address (Laravel 7)

Clear config with php artisan config:clear

Activity icon

Replied to Cannot Send Message Without A Sender Address (Laravel 7)

Clear config with php artisan config:clear

Apr
06
4 months ago
Activity icon

Replied to Getting Started With Laravel-Mix. Basics And Complexity

You mentioned datatables complained about the $ not being defined. I remember having to do something like this to make it work. require( 'datatables.net-bs4' )( $ );

I am not sure if adding all that extra stuff to the webpack config is required though, I don't think you should have to do that. I remember having a similar issues when loading it all through mix. Mix really is great and makes life easier though, keep going with it.

This all works as a test demo project you could have a look at and see if it helps you. https://github.com/andrewjamesbibby/project-demo/blob/master/resources/js/bootstrap.js

If you get stuck I can see if I can help. :-)

Mar
19
4 months ago
Activity icon

Awarded Best Reply on How To Enable Tls 1.3 On Laravel Forge?

Ok so it does work, but I am running the servers behind an AWS load balancer and they do not support TLSv1.3. Checking each server individually does actually work as expected.

Activity icon

Replied to How To Enable Tls 1.3 On Laravel Forge?

Ok so it does work, but I am running the servers behind an AWS load balancer and they do not support TLSv1.3. Checking each server individually does actually work as expected.

Activity icon

Started a new Conversation How To Enable Tls 1.3 On Laravel Forge?

I want to add tls 1.3 support to server using Laravel Forge. I though it would be as easy as adding:

ssl_protocols TLSv1.3;

However when I use an SSL check to see which protocols are being used it is still showing the older protocols. I have restarted nginx and server after updates.

Has anyone applied TLSv1.3 in Laravel Forge before? Do the Ciphers need to be adjusted also? The server in question is running Openssl version 1.1.1 which should be suitable.

Thanks.