votemike

votemike

Developer at Paddle

London

Hire Me

Member Since 4 Years Ago

Experience Points 2,970
Experience
Level
Lessons Completed 190
Lessons
Completed
Best Reply Awards 0
Best Answer
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.

17 Apr
8 months ago

votemike left a reply on GDPR Package

I see, maybe a single package isn't appropriate. What about a package to zip up user information automatically. Are there any packages that can remove metadata (such as authors or GPS co-ordinates) from upload photos?

16 Apr
9 months ago

votemike started a new conversation GDPR Package

Does anyone know of any packages that deal with the upcoming GDPR regulations? Or would it be worth updating core Laravel to deal with these regulations (as the regulations apply to any business done in or with the EU). I would imagine this would include things such as a checkbox when registering to agree to terms & conditions. Also some in-built way for a user to delete their account (right to be forgotten) and to anonymise any data linked to the user (such as an order linked to a user).

06 Feb
11 months ago

votemike left a reply on Route Model Binding Key Name

Is that not a bit odd. Seeing it's not an Item in the route, it's a slug. In the same was that if I was loading it via an id, I would want to define item/{item_id} rather than item/{item}. Or is that not possible?

votemike started a new conversation Route Model Binding Key Name

I am trying to use a slug to load an item. My route is:

Route::get('item/{slug}', '[email protected]')->name('foo');

My show method is:

public function show(Item $item)

And my Item has the method:

public function getRouteKeyName(): string
{
    return 'slug';
}

However I just get an empty Item in the show() method. Have I missed something?

I've worked out that I can instead to call the variable $slug instead of $item, but that seems odd.

27 Mar
2 years ago

votemike started a new conversation WYSIWIG/Markdown Editor

I am writing my own blog system. I would like to have some very simple formatting ( blocks, header tags, paragraphs etc...). I could just write the HTML when I create the blog posts, but I would prefer some sort of editor. Could I get some opinions on whether I should use a markdown editor or a WYSIWIG editor? And any suggestions for the simplest one to both use and implement.

I have looked at some WYSIWIG editors such as TinyMCE, but I think that has too many options out-of-the-box. I would prefer the simplest possible. (I'm aware I can turn various features off, but there's no need for them in the first place).

Thanks,

Michael

19 Jul
3 years ago

votemike left a reply on Laravel 5.1 And Travis CI

I had previously tried this solution: https://github.com/orchestral/testbench#no-supported-encrypter-found-the-cipher-and--or-key-length-are-invalid

But then I tried again with a 32 character string and it worked.

votemike started a new conversation Laravel 5.1 And Travis CI

I'm trying to get a Laravel 5.1 install working with Travis CI. However, travis keeps giving me the following error:

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

Caused by
exception 'RuntimeException' with message 'No supported encrypter found. The cipher and / or key length are invalid.' in /home/travis/build/votemike/palette/bootstrap/cache/compiled.php:6632

Full error here: https://travis-ci.org/votemike/palette/jobs/71647139

In my tests, I am testing going to the homepage route and checking that a form is there. I have tried setting the APP_KEY via the .travis.yml file and also running the generate key command, but neither of those work.

Any ideas?

Thanks,

Michael

12 Feb
3 years ago

votemike left a reply on Laracasts Commander With Artisan Commands

@thepsion5's answer works. However I had to adjust it a bit.

The code I wanted to execute this code:

$this->execute(Foo::class($attributes, [Bar::class, Baz::class]));

I had to change this to:

$this->bus()->execute(new Foo($attributes['a'], $attributes['b'], $attributes['c']));

An update @thepsion5's bus() function to this:

protected function bus() 
{
    $bus = App::make('Laracasts\Commander\CommandBus');
    $bus->decorate(Bar::class);
    $bus->decorate(Baz::class);

    return $bus;
}   

And then you don't need to USE any of the commander traits or anything