maarten

maarten

Member Since 5 Years Ago

Experience Points 11,400
Experience Level 3

3,600 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 500
Lessons
Completed
Best Reply Awards 1
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

20 Apr
1 year ago

maarten left a reply on Mails Sent Using Mail::queue Won't Apear In Mailgun Logs

Hi,

Does anyone of you solved this issue? Having the same problem right now and makes me crazy.

Hope to hear from you soon.

Kind regards,

Maarten.

03 Nov
2 years ago

maarten left a reply on Ssh Passphrase Key

Hello @lars64 ,

Thanks for the reply. In my case it was even simpeler. I couldn't remember i entered a phrase when creating the key. So i hit return when de question pops up. After that i could enter my password and login to my machine.

Kinda silly.

Maarten.

24 Oct
2 years ago

maarten left a reply on Ssh Passphrase Key

I get the same message when i want to login to my digital ocean server. It was working fine. But now i get this message. Hope anybody can help me. Just updated my macbook to the latest OSX version, maybe that change something?

Thanks in advance.

Kind regards,

Maarten.

21 Dec
3 years ago

maarten left a reply on When Using SoftDeletes Trait Getting PHPUnit Fails

i am new with testing and forgot that for test i specified a separate DB. :-(

Thx for again.

Kind regards,

Maarten.

maarten left a reply on When Using SoftDeletes Trait Getting PHPUnit Fails

Hello,

The deleted_at column is in the database ( on members table)

Thx for the quick reply.

Kind regards,

Maarten

maarten started a new conversation When Using SoftDeletes Trait Getting PHPUnit Fails

Hello,

Hope somebody can help me with my problem. For a model i make use of the softdeletes trait. When i run a simple test (i.e. visit the home page) phpunit generates an error ( see below). When i remove the SoftDeletes trait the test is correct. ''' There was 1 failure:

  1. PagesTest::it_should_visit_the_homepage A request to [http://localhost] failed. Received status code [500].

/home/vagrant/<project-name>/vendor/laravel/framework/src/Illuminate/Foundation/Testing/InteractsWithPages.php:165 /home/vagrant/<project-name>/vendor/laravel/framework/src/Illuminate/Foundation/Testing/InteractsWithPages.php:63 /home/vagrant/<project-name>/vendor/laravel/framework/src/Illuminate/Foundation/Testing/InteractsWithPages.php:44 /home/vagrant/<project-name>/tests/PagesTest.php:32 /home/vagrant/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:154 /home/vagrant/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:105

Caused by exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'members.deleted_at' in 'where clause'' in /home/vagrant//vendor/laravel/framework/src/Illuminate/Database/Connection.php:319

''' Thanks in advance

Kind regards,

Maarten.

21 Oct
3 years ago

maarten left a reply on Eloquent Returning Strings On Production But Ints On Development

Hello opencopy,

please take a look at: http://stackoverflow.com/questions/5323146/mysql-integer-field-is-returned-as-string-in-php I think it's caused by the MySQL driver.

Hope it helps.

Kind regards, Maarten.

21 Jul
3 years ago

maarten left a reply on Laravel 5.1 Factory Default Language

Hi Angelside,

I did it as shown below:

$factory->define(App\Models\Client::class, function(Faker\Generator $faker) {

    $faker->addProvider(new Faker\Provider\nl_NL\Person($faker));

    return [
        'name' => $faker->firstName . ' ' . $faker->lastName,
        'city'     => $faker->city
  ];
});

Hope it helps.

Kind regards,

Maarten

04 Nov
4 years ago

maarten left a reply on Where Are You All From?

Warnsveld, The Netherlands

20 Sep
4 years ago

maarten left a reply on Field Validation

@cocoon, thx for the reply. Will try this for sure.

Maarten

19 Sep
4 years ago

maarten started a new conversation Field Validation

Hi,

Is there an out of the box validation rule to check if the first character is a digit and the second a character in the range of [A-Z].

Thanks in advance.

Maarten.

16 Sep
4 years ago

maarten started a new conversation How To Handle Response

Hi,

I did some refactoring on a very muddy controller. I implemented a few repositories and now make use of the Laracast Validation package. That helped a lot. I am quite new to PHP / Laravel but i want to know how you guys handle to following:

I have a route which i hit via regual HTTP Post request but also via AJAX calls. How do you handle the different returns. For example, in my store method when i call a create method on my repository i captured it in a Try Catch block. When it is successfull i check if it's a Ajax request, then i do A, when normal HTTP POST i do B.

I am wondering how you guys are handling this problem.

Thanks in advance.

Kind regards,

Maarten.

15 Sep
4 years ago

maarten left a reply on Creating Repositories And Repeating Myself

@keevitaja, thanks for the reply. After posting my question a was thinking that it indeed had nothing to do with repos. It's just Eloquent specific.

Maarten.

maarten left a reply on Creating Repositories And Repeating Myself

Hi all,

Read all the mentioned sites. While implementing the repositories i do have a question. If i want to eager load something and don't use a repository i can achieve this with the method 'with'. When using a repository i need to create this with in my repository (as mentioned in the blog http://culttt.com/2014/03/17/eloquent-tricks-better-repositories/).

Isn't there another way to achieve this, i think the readability isn't that clear when you create it yourself. I would like to do something a long the line of: $this->repositoryName->with('some_relation')->all();

Hope my question is clear and someone can provide my a way.

Thanks in advance.

Maarten.

13 Sep
4 years ago

maarten left a reply on Creating Repositories And Repeating Myself

BTW some links to tutorials / easy documentation about traits are welcome.

Maarten.

maarten left a reply on Creating Repositories And Repeating Myself

Hello Guys,

I think i need to take some steps back... after reading your replies. Traits, Abstract classes with get_called_class(). As you all see, a lot of homework for me..

But thanks for all the answers. Keeps me learning!!

Maarten.

12 Sep
4 years ago

maarten left a reply on Creating Repositories And Repeating Myself

Thank you very much!!! That's where i was looking for, but didn't now how to do it.

Maarten

maarten started a new conversation Creating Repositories And Repeating Myself

Hello all,

I am trying to make use of a repository for one of my Classes. I made an interface and my repository class is implementing it. It's working well. Now i want to make another repository for another class and at the start of typing that interface i am repeating myself...... I hope someone can give me a tip how to handle this. Should i make a base class for the "standard" methods. If so, i am looking for some tips and examples how to do it.

Thanks in advance.

Kind regrards,

Maarten.

27 Aug
4 years ago

maarten left a reply on Trying To Make Use Of The Laravel Installer

All,

Thanks for all the answers. It's working now.

24 Aug
4 years ago

maarten started a new conversation Trying To Make Use Of The Laravel Installer

Hi everybody,

I'm trying to make use of the Laravel installer. But when i type 'Larvel new' the command not found error is shown. In the documentation this is written: > Make sure to place the~/.composer/vendor/bin directory in your PATH so the laravel.

Hope some one can help me with this.

Thanks in advance.

Kind regards,

Maarten.