TollerHovler

TollerHovler

Developer at Colobri Studios

Member Since 8 Months Ago

Götene

Experience Points
690
Total
Experience

4,310 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
2
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 1
690 XP
Sep
24
1 month ago
Activity icon

Replied to Class SeeInOrder Not Found When Testing Component / Blade

If you stumble upon a solution somewhere, please share. My current solution is simply not using it. I would very much like this ability though, testing for strings without being able to specify where, leaves a lot of possible "false-positive" tests. :(

Sep
21
1 month ago
Activity icon

Replied to Class SeeInOrder Not Found When Testing Component / Blade

One weird addition to this issue is that if I pass in the wrong arguments, like so:

 $this->component(Button::class, [])->assertSeeInOrder("Foo");

I get the error:

TypeError : Argument 1 passed to Illuminate\Testing\TestView::assertSeeInOrder() must be of the type array, string given

But as soon as I change it to an array it does not find the class instead. Isn't that weird?

Sep
18
1 month ago
Activity icon

Replied to Class SeeInOrder Not Found When Testing Component / Blade

use Tests\TestCase;

class ButtonTest extends TestCase {

    public function testNothing() {
        $this->blade("<x-button />")->assertSeeInOrder([]);
    }

}

This is how it looks in the docs, is this not correct? :o It works for every other part of my test suite, using the same assertions. I threw in a $this->get('/')->assertSeeInOrder([]) in the same test class and it ran fine. It's only when using it on a component/blade call it fails. :(

Activity icon

Started a new Conversation Class SeeInOrder Not Found When Testing Component / Blade

Hello! I'm trying to write tests for a few components but I stumbled upon an issue.

I'm attempting to use the SeeInOrder assertion on a component. I have tried a few approaches:

  public function testComponent() {
        $this->component(Button::class, [])->assertSeeInOrder([]);
    }
  public function testComponent() {
        $this->blade("<x-button />")->assertSeeInOrder([]);
    }

However, both these approaches give me this error:

Error : Class 'Illuminate\Testing\SeeInOrder' not found

It's only the "inOrder" assertions that are throwing this issue. If I use "assertSee" or "assertSeeText" it works fine. The "inOrder" variants work fine in other parts of the test suite. The weird thing is that PHPStorm suggests both "InOrder" variants on both the component and the blade solution (this is one of the reasons I believe these assertions are meant to work at least).

Anyone who can tell me why this is?

Many thanks!

Sep
15
1 month ago
Activity icon

Replied to Is There A Way To Use Macros In Blade?

I'm sorry for the extreme delay, but thank you very much, components is indeed what I was looking for, and working with those is even even more awesome than the macros in twig. :D

Thanks!

Jun
20
4 months ago
Activity icon

Replied to Is There A Way To Use Macros In Blade?

Thank you for your answer! However, I don't know if this feels as smooth as a macro in twig. Perhaps there simply is not a perfect equivalent? Like, in twig I could have a macro such as this in a template file:

{% macro input(label, name, value, type) %}
	<div class="input-group">
		<label>{{ label }}</label>
    		<input type="{{ type }}" name="{{ name }}" value="{{ value }}" />
	</div>
{% endmacro %}

And then in my template form I could write something like:

<form>
	{{ input("Name", "name", "Toby", "text") }}
	{{ input("Password", "password", "123", "password") }}
</form>

And it made the code look clean and very easy to manage. I may of course misunderstand your solution though? To me it feels like taking a step away from blade as a templating engine and go back into php, which the templating-engine itself created to avoid?

Jun
19
4 months ago
Activity icon

Started a new Conversation Is There A Way To Use Macros In Blade?

Hi!

I have recently decided to switch to blade from twig, mostly due to blade being default. But I hit a roadblock almost at once - in twig I can use macros to reuse code and have a cleaner template, but searching for the equivalent in blade gave me nothing, it is almost like there is no such thing in blade, and what's even more frustrating is that it does not seem like this is a frequent question, making me think I've completely missed something somewhere. Is there anything like Twig-macros in blade?

Thanks in advance!