📜  laravel 刀片组件 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:47.951000             🧑  作者: Mango

代码示例2
// Create component in terminal using :
    php artisan make:component MyComponent
  
// 2 files will be made : 
// * app\View\Components\MyComponent.php 
//   - Handels functionality.
// * resources\views\components\my-component.blade.php ()
//   - Code snippet for component. Must be inside 
...
. // Call component in any other blade file using : // Send hardcoded parameter : // Send a php parameter :