isarantoglou

isarantoglou

Member Since 1 Year Ago

Experience Points
72,260
Total
Experience

2,740 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
678
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 15
72,260 XP
May
31
1 day ago
Activity icon

Replied to How To Deal With Mandatory Properties Of An Object.

@martinbean I think you are correct and I understand it now :)

Thank you.

May
30
2 days ago
Activity icon

Replied to How To Deal With Mandatory Properties Of An Object.

Thank you for your replies.

@martinbean I have seen this concept of value objects. I am not still very comfortable of using value object just for validation of a parameter. Not sure if its the correct approach or not but I would choose not to make a new class for ISBN but validate it during the constructor of the book.

But I understand what you said and in my project the integrity of the objects are important so I will stick with using mandatory values in the constructor (with validation). I will for sure re-think value objects.

May
28
4 days ago
Activity icon

Started a new Conversation How To Deal With Mandatory Properties Of An Object.

Hello,

I am puzzled as how to deal with mandatory properties to initialize an object. Let’s take a class that describes a book. To initialize it you need to enter at least the Title, Author and ISBN. Should I use the constructor to “force” these properties to be entered in order to create the object or there should not be a constructor and these properties can be entered via setters?

Also, I suppose, if there are any optional properties, for example Price, that should be only entered via setter, right?

Thank you in advance, Ilias

May
12
2 weeks ago
Activity icon

Commented on Techniques For Testing Against A Real API

Noticed that too. The problem is that (int) cast is applied at the variable and not at the result of the multiplication. So I believe the multiplication should be in a parentheses.

Apr
21
1 month ago
Activity icon

Replied to Send XML Body With HTTP Client (Laravel 7)

I ended up doing it with Guzzle (GuzzleHttp\Client) directly:

$client->post($url, [
                'body' => $xml ]);
Apr
07
1 month ago
Activity icon

Replied to Send XML Body With HTTP Client (Laravel 7)

I thought so too, but it seems the endpoint send back 400 - Bad request. It appears that Http client wraps the body in double quotes:

"<?xml version=\"1.0\" ....."

That is how the raw output starts. Not sure if this is supposed to be like this or not.

Trying to verify the received XML (made my own endpoint and tested it) with DOMDocument I get the following:

Start tag expected, '<' not found

While if I remove the double quotes it is valid.

Activity icon

Started a new Conversation Send XML Body With HTTP Client (Laravel 7)

Hello,

I am trying to learn HTTP Client of Laravel 7 and I got stuck. I want to send a XML to an endpoint but I can't find any documentation (https://laravel.com/docs/7.x/http-client#introduction). As I understand the default behavior is JSON.

Here is my code:

$headers = [ .. ];

$xml = ... // Valid XML created with DOMDocument


Http::withHeaders($headers)->post('https://test.com/',
             $xml
        );

Also the response is XML.

Is this doable with the Http client or shall I use guzzle?

Thanks in advance, Ilias

Jan
09
4 months ago
Activity icon

Commented on String Calculator Kata

Small thing it caught my OCD. You extracted a method called ignoreGreaterThan1000() and had a const MAX_NUMBER_ALLOWED set to 1000. So in the case we need to change and ignore greater than 2000 we change the MAX_NUMBER_ALLOWED to 2000. But then, the name of the function would end up wrong. So I would prefer, either to get rid of the constant or make a more generic function.

As I said it is really minor. Perfect lesson as always.

Dec
13
5 months ago
Activity icon

Started a new Conversation Question About A New Project And Multiple Subdomains

Hello,

I will be migrating and old project from plain old PHP to Laravel but I wanted an opinion on how to do it.

Currenlty the application has 4 section:

  • website / www.website.com
  • application / app.website.com
  • admin panel / admin.website.com
  • api / api.website.com

My question is should I make all these one laravel project or 3 seperate (and use a CMS for the website). Can one laravel project handle all these domains if I choose to go with 1 laravel project?

Thank you.