---
title: "Discussion on \"Testing Blade components in Laravel\" | Hashnode"
description: "Discussion on \"Testing Blade components in Laravel\". Laravel provides a range of methods to test parts of the framework, one of which is called blade() which allows you to test blade components work as expected.\nLet's take a simple blade component:\n@props([\n    'type' => 'submit'\n])\n\n<div>\n    <button ..."
url: "https://hashnode.com/posts/testing-blade-components-in-laravel/615d8c9a2d874c46dfa3bcd8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Testing Blade components in Laravel](https://dcblog.dev/testing-blade-components-in-laravel?utm_source=hashnode&utm_medium=feed)

Laravel provides a range of methods to test parts of the framework, one of which is called blade() which allows you to test blade components work as expected. Let's take a simple blade component: @props(\[ 'type' => 'submit' \]) <div> <button ...

Sep 10, 2021 · 1 min read · dcblog.dev  
Updated Aug 12, 2023  
Read the article

-   [#laravel](https://hashnode.com/tag/laravel)
-   [#laravel-blade](https://hashnode.com/tag/laravel-blade)
-   [#testing](https://hashnode.com/tag/testing)
-   [#components](https://hashnode.com/tag/components)

## Written by

[David Carr](https://hashnode.com/@dcblogdev)

@dcblogdev · United Kingdom

  
[View profile](https://hashnode.com/@dcblogdev)

Web developer

Blogger at http://dcblog.dev.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
