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

[10.x] Adds Template Inheritance ability of the generated view #48578

Closed
wants to merge 2 commits into from
Closed

[10.x] Adds Template Inheritance ability of the generated view #48578

wants to merge 2 commits into from

Conversation

mahmoudmohamedramadan
Copy link
Contributor

The command for generating a view was introduced in this #48330 PR by @nunomaduro and I think that it would be nice if we could specify the parent of the generated view, to use this new feature you can type the next command

php artisan make:view users.index --layout=layouts.app

Here are the contents of the generated resources/views/users/index.blade.ph

@extends('layouts.app')

<div>
    <!-- Nothing in life is to be feared, it is only to be understood. Now is the time to understand more, so that we may fear less. - Marie Curie -->
</div>

@taylorotwell
Copy link
Member

I prefer components instead.

@mahmoudmohamedramadan
Copy link
Contributor Author

mahmoudmohamedramadan commented Sep 30, 2023

I prefer components instead.

Sir, it still supports component as you said. In addition, supports Template Inheritance for whom need

@mahmoudmohamedramadan mahmoudmohamedramadan changed the title [10.x] Adds the ability to specify the parent of the generated view [10.x] Adds Template Inheritance ability of the generated view Sep 30, 2023
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

Successfully merging this pull request may close these issues.

2 participants