Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate template with component will generate full page #1092

Open
lomotech opened this issue Dec 12, 2023 · 1 comment
Open

generate template with component will generate full page #1092

lomotech opened this issue Dec 12, 2023 · 1 comment

Comments

@lomotech
Copy link

laravel: 10
laravel-generator: 6.0.1
adminlte-template: 6.0.0
php: 8.3

issue

  1. generator not generate component as component tag but full view of it

step to reproduce

  1. edit template from stub to add component
<x-app-layout>
  ....
</x-app-layout>
  1. generate view file using that stub
  2. 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

  1. there is any thing i missing somthing or there is a method to prevent generator to generate full blade from the component?
@lomotech
Copy link
Author

update

right now im calling it as echo blade

{!! '<'.'x-app-layout'.'>' !!}
...
{!! '</'.'x-app-layout'.'>' !!}

but it quite hassle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant