Category: Laravel Explanation

  • Automatic Blade variables

    Slot/s Component Slot/s are rendered by echoing the variable: “$slot“. We can pass content into the slot by injecting it into the component. Like so: Lets say we have a layout file: “layout.blade.php” Then you also have a views file: “home.blade.php” Now what that does it takes this: “<div><h1>Hello, World</h1></div>” and echo’s it where the…

    Zum Beitrag

    //