jjmu15

jjmu15

CEO at TechSource Kft

Member Since 2 Years Ago

Budapest

Experience Points
27,410
Total
Experience

2,590 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
267
Lessons
Completed
Best Reply Awards
0
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 6
27,410 XP
Oct
11
2 weeks ago
Activity icon

Started a new Conversation Stripe & Laravel Cashier - Signature Not Found

I am trying to set up the webhooks in Stripe to work with Laravel Cashier but get the following error when the request is received by my app

'No signatures found matching the expected signature for payload'

I've checked the docs and I have already added the Stripe webhook secret key to my .env file under the STRIPE_WEBHOOK_SECRET variable and I've added 'stripe/*' to the csrf exceptions array in my config.

I've been searching google and reading the docs for more things I need to do but can't seem to find anything else to work with.

Any ideas?

Thanks in advance.

Sep
28
1 month ago
Activity icon

Replied to Access Forbidden For Oauth Users

Sorry, the NOVA_GUARD value in my .env was not set.

I've just set it to match web as per my auth config file and I still see the same issue of a 403 page.

Activity icon

Replied to Access Forbidden For Oauth Users

Nova is currently using the default NOVA_GUARD and my app is using the session guard for web and passport for api

Activity icon

Started a new Conversation Access Forbidden For Oauth Users

So I've got an app that doesn't have a traditional username/password login, just oauth login.

With this setup, I always get a 403 error when trying to access Nova in production despite the user being logged in successfully and their email being included inside the Nova Gate list as per the docs.

Do you have any idea how to solve this?

Thanks

Sep
24
1 month ago
Activity icon

Replied to Opposite Of AssertJsonFragment

oh damn. Thanks so much. I had assumed that this was only the opposite of the assertJson() test.

Activity icon

Started a new Conversation Opposite Of AssertJsonFragment

Hi,

Apologies if this is a silly question but how would I test for the opposite of assertJsonFragment to be sure that a record is not returned within a resource collection?

Thanks in advance!

Jul
14
3 months ago
Activity icon

Replied to Where Query - Using Calculated Date Value From Record In The DB

@arushad - its not really possible to do that as the DB_COLUMN_VAL will differ per row in the DB and I need to use that value to filter the results.

Jul
07
3 months ago
Activity icon

Replied to Where Query - Using Calculated Date Value From Record In The DB

ah... does Laravel use SQL lite when using refresh DB for testing do you know?

I'm using TDD and running the code via the test so that could explain it?!

Activity icon

Replied to Where Query - Using Calculated Date Value From Record In The DB

Nope, MySQL.

Thanks for taking the time to help btw. Much appreciated! :)

Activity icon

Replied to Where Query - Using Calculated Date Value From Record In The DB

Ok so maybe we're getting somehwere.

It seems like it isn't getting access to the raw sql functions.

I entered

$tests = Test::active()->whereRaw("start_date = DATE(NOW())")->get();

and got an error saying the NOW function doesn't exist

General error: 1 no such function: NOW (SQL: select * from "tests" where "published_at" is not null and "completed_at" is null and "visible" = 1 and start_date = DATE(NOW()))

Activity icon

Replied to Where Query - Using Calculated Date Value From Record In The DB

 General error: 1 near "SELECT": syntax error (SQL: select * from "tests" where "published_at" is not null and "completed_at" is null and "visible" = 1 and start_date = SELECT SUBDATE(NOW(), INTERVAL 1 DAY))

Seems like the same kind of error. I'm not sure what the problem is but it seems like a fundamental problem with the subdate function in my db :/

Activity icon

Replied to Where Query - Using Calculated Date Value From Record In The DB

I can't see any errors in it. My exact code is below:

$tests = Test::active()->whereRaw("start_date = DATE(DATE_SUB(NOW(), INTERVAL variation_length DAY))")->get();

The DB type is InnoDB with UTF-8 Unicode encoding.

I still get the general error as before. Do you see anything obvious?

Activity icon

Replied to Where Query - Using Calculated Date Value From Record In The DB

This throws a similar error:

 General error: 1 near "variation_length": syntax error (SQL: select * from "tests" where "published_at" is not null and "completed_at" is null and "visible" = 1 and start_date = DATE(DATE_SUB(NOW(), INTERVAL variation_length DAY))))

Would it be possible using some extension of parameter grouping do you know? E.g:

Test::active()->where(function($query)
            {
                $query->where('variation_length', '>', $carbonDate->subDays('VARIATION_LENGTH_VALUE');
            })
            ->get();
Activity icon

Replied to Where Query - Using Calculated Date Value From Record In The DB

Thanks for the quick reply.

The above throws a general error which is:

General error: 1 near "variation_length": syntax error (SQL: select * from "tests" where "published_at" is not null and "completed_at" is null and "visible" = 1 and start_date = DATE_SUB(NOW(), INTERVAL variation_length DAYS))
Activity icon

Replied to Laravel Passport How To Logout User?

Not yet, sorry. It is on the dev list but focussing on other features first.

Activity icon

Started a new Conversation Where Query - Using Calculated Date Value From Record In The DB

I need to run a query where the date matches a calculated value. The scenario is as below

$now = CarbonImmutable::now();
$tests = Test::active()->whereDate('start_date', '=', $now->subDays('DB_COLUMN_VAL'));

How would I go about this?

Thanks in advance

Jun
23
4 months ago
Activity icon

Replied to Laravel 7 Tutorials

Laravel 7 is largely the same as 6. If you start with that you'll understand probably more than 95% of what you need to build your application and then until there is an updated series I'd recommend to check the upgrade from 6 to 7 guide to see if any changes are specific to what you need to work (https://laravel.com/docs/7.x/upgrade)

Activity icon

Replied to Laravel Deployment - The Easy Way

I use Laravel Forge and it makes everything simple and straight forward for pretty much all laravel features including queues and so on

Activity icon

Awarded Best Reply on Laravel Cashier With React Stripe Library

OK so I finally figured it out.

The problem was that the React Stripe library documentation is incomplete as far as I can tell. They only provide an example for setting up a single payment intent with React rather than a subscription. The page in question can be found here (https://stripe.com/docs/stripe-js/react).

Behind the scenes of this is the standard Stripe elements library so what you need to do is set it up using the structure of the React Stripe documentation but then instead of using the stripe.createPaymentMethod() method they suggest, use the stripe.confirmCardSetup() method instead.

The documentation for stripe.confirmCardSetup() can be found here: https://stripe.com/docs/js/setup_intents/confirm_card_setup

The object structure at this point is the same so just hook that method into your react setup from the previous steps and it should work.

Activity icon

Replied to Laravel Cashier With React Stripe Library

OK so I finally figured it out.

The problem was that the React Stripe library documentation is incomplete as far as I can tell. They only provide an example for setting up a single payment intent with React rather than a subscription. The page in question can be found here (https://stripe.com/docs/stripe-js/react).

Behind the scenes of this is the standard Stripe elements library so what you need to do is set it up using the structure of the React Stripe documentation but then instead of using the stripe.createPaymentMethod() method they suggest, use the stripe.confirmCardSetup() method instead.

The documentation for stripe.confirmCardSetup() can be found here: https://stripe.com/docs/js/setup_intents/confirm_card_setup

The object structure at this point is the same so just hook that method into your react setup from the previous steps and it should work.

Activity icon

Replied to Laravel Cashier With React Stripe Library

Just bumping this to see if anyone has any suggestions or advice.

Thanks in advance.

Jun
18
4 months ago
Activity icon

Replied to Laravel Cashier With React Stripe Library

Apologies.

Specifically i'm looking for the flow to enter card details and use those right away to sign up to a recurring subscription.

As far as I can tell Laravel Cashier only supports the setupIntent method which gets applied to the react elements library in stripe for the card field to store it as a payment method to be used at a later date but instead of that I want to have one single entry of card details during signup which are then used to create a recurring subscription.

What would be the flow for that?

Activity icon

Started a new Conversation Laravel Cashier With React Stripe Library

Has anyone managed to hook Laravel Cashier up with the Stripe React frontent library for subscription payments?

I'm really struggling despite reading both sets of documents multiple times how to hook them up.

I've also tried googling extensively but there seem to be next to no results about using Laravel Cashier with React.

Thank you in advance for any help you can give. I'm tearing my hear out a little here.

May
21
5 months ago
Activity icon

Commented on Subscriptions With Stripe

Please, please, please create an up to date Laravel Cashier and Stripe tutorial :)

May
19
5 months ago
Activity icon

Replied to Laravel Passport How To Logout User?

I have the same problem. I'm using the standard laravel Auth process to utilise Laravel Socialite and then using the CreateFreshApiToken middleware to consume the API locally.

When I try to logout by either using Auth()->logout(); and also revoking the token I get the Method Illuminate\Auth\RequestGuard::logout does not exist error.

I've tried specifying both the Auth('web') and Auth('api') guards as well and have no luck