generate template with component will generate full page
lomotech opened this issue · comments
laravel: 10
laravel-generator: 6.0.1
adminlte-template: 6.0.0
php: 8.3
issue
- generator not generate component as component tag but full view of it
step to reproduce
- edit template from stub to add component
<x-app-layout>
....
</x-app-layout>
- generate view file using that stub
- it will generate full blade view instead put component tag into generated view
// suppose
<x-app-layout>
....
</x-app-layout>
// generate this instead
<!DOCTYPE html>
<html lang="ms-MY">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="">
...
question
- there is any thing i missing somthing or there is a method to prevent generator to generate full blade from the component?
update
right now im calling it as echo blade
{!! '<'.'x-app-layout'.'>' !!}
...
{!! '</'.'x-app-layout'.'>' !!}
but it quite hassle.