Ruffles

Ruffles

Senior PHP Developer at Adeva

Member Since 5 Years Ago

Skopje, Macedonia

Experience Points
325,950
Total
Experience

0 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
1428
Lessons
Completed
Best Reply Awards
153
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 50
325,950 XP
May
17
1 month ago
Activity icon

Replied to Http::fake() Is Ignored And The Real HTTP Request Is Being Fired To An External API

@carobiscuit just use the Http facade and it will work properly, check the docs for more info.

May
01
2 months ago
Activity icon

Commented on Find The Nouns

It's all about the toilet paper!

Apr
25
2 months ago
Activity icon

Commented on Make The Timeline Dynamic

@kggeorgiev There are 2 things I like about the magic properties:

  • Looks cleaner to me
  • It handles null values in cases where the attribute could be null, without the need for if checks
Activity icon

Commented on Make The Timeline Dynamic

@sumonmselim it should be auth()->user()->avatar

Apr
19
2 months ago
Activity icon

Replied to Http::fake() Is Ignored And The Real HTTP Request Is Being Fired To An External API

I solved it by using the facade as a dependency in the constructor, it's close enough to what I am looking for.

Apr
18
2 months ago
Activity icon

Replied to Http::fake() Is Ignored And The Real HTTP Request Is Being Fired To An External API

Ok so I switched my Factory class to use the Http facade instead and it is working as expected.

Is there an alternative way to use dependency injection for the Http client class?

Activity icon

Replied to Http::fake() Is Ignored And The Real HTTP Request Is Being Fired To An External API

That’s interesting, because for other similar tests, I don’t use the facade (Storage for example) and it works, but it does not work for Http.

Activity icon

Started a new Conversation Http::fake() Is Ignored And The Real HTTP Request Is Being Fired To An External API

Hi,

I am trying to test some external API calls with a fake call using the Http client that Laravel provides out of the box, but for some reason I am not getting the fake version that I have specified, instead it just proceeds to hit the API for some reason.

Here's an example code in my test:

$http = app(Factory::class);
$http->fake(function ($request) use($http) {
    return $http->response(['Status' => 0], Response::HTTP_OK);
});

After this I do something like:

$response = $this->postJson('my-url', $attributes);

and I get the original response from the external API instead of the fake one that i specified in my test.

Anyone have any ideas what am I missing?

Mar
21
3 months ago
Activity icon

Commented on Make The Timeline Dynamic

That $attributes['body'] part in the controller reminds me of the legacy code base I work on currently.

Sometimes I wish I had $request->body in those projects, what a luxury that is!

Feb
16
4 months ago
Activity icon

Started a new Conversation What Do You Think About My Personal Website And Blog?

I rebuilt my personal website with Laravel, VueJS and TailwindCSS as a single page application for learning purposes.

Check it out and let me know what you think.

Any feedback is appreciated.

https://davorminchorov.com/

Jan
20
5 months ago
Activity icon

Commented on Tips For Simplifying Laravel Controllers

Yeah, controllers with __invoke are also known as single action controllers. You can read about that here.

Activity icon

Replied to Override Created_at Value From Eloquent Models, Without Disabling Timestamps

One way would be to disable the timestamps by using protected $timestamps = false; and manually overriding the values in a model event / observer.

Activity icon

Commented on Tips For Simplifying Laravel Controllers

More tips like these can be found in his talk from Laracon US.