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

make:component missing nested folder for blade file #32009

Closed
joveice opened this issue Mar 17, 2020 · 0 comments · Fixed by #32030
Closed

make:component missing nested folder for blade file #32009

joveice opened this issue Mar 17, 2020 · 0 comments · Fixed by #32030
Labels

Comments

@joveice
Copy link

joveice commented Mar 17, 2020

  • Laravel Version: 7.2.0
  • PHP Version: 7.4.3
  • Database Driver & Version:

Description:

Does not create nested folders for blade files

Steps To Reproduce:

php artisan make:component Navigation/Item
# View/Components/Navigation/Item.php
# views/components/item.blade.php
...
    /**
     * Get the view / contents that represent the component.
     *
     * @return \Illuminate\View\View|string
     */
    public function render()
    {
        return view('components.item');
    }

Expected it to be

# View/Components/Navigation/Item.php
# views/components/navigation/item.blade.php

Tested this since that's how you look for them in functions and such.
The view folder got created as expected but the class is borked with a missing folder.

php artisan make:component navigation.item
# View/Components/navigation.item.php
# views/components/navigation/item.blade.php
...
    /**
     * Get the view / contents that represent the component.
     *
     * @return \Illuminate\View\View|string
     */
    public function render()
    {
        return view('components.navigation.item');
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants