robsontenorio / mary

Laravel Blade UI Components for Livewire 3
https://mary-ui.com
Other
1.05k stars 128 forks source link

Error when installing maryui in a project that has "laravel/breeze" #289

Closed jjanampa closed 9 months ago

jjanampa commented 9 months ago

MaryUI version

1.20.1

daisyUI version

4.6.2

Livewire version

3.4.4

What browsers are affected?

Chrome

What happened?

Error when installing maryui in a project that has "laravel/breeze".

In the files "resources/views/livewire/welcome.blade.php" and "resources/views/components/layouts/app.blade.php", components are called without the "mary-" prefix.

image

I have renamed all the component calls but I get another error:

image

dormammuuuuu commented 9 months ago

When using a starter kit, it's much better to have a prefix in the Mary config.

robsontenorio commented 9 months ago

@jjanampa All the examples on docs does not have prefix.

So , if you copy examples from docs you have to add a component prefix on your code, according to your “config/mary.php”

On breeze and Jetstream By default is “x-mary-“

holiq commented 9 months ago

@robsontenorio you right, I found the prefix marry on the config, thanks

jjanampa commented 9 months ago

Thank you very much for the response @robsontenorio, congratulations for the good work, I am testing maryui in Laravel 11. Maybe you could make it so that if the project has "laravel/breeze", the installer does not copy the files to the project: resources/views/livewire/welcome.blade.php , resources/views/components/layouts/app.blade.php y routes/web.php (the installer removes the routes that were added by breeze)

robsontenorio commented 9 months ago

This is expected.

As breeze/jetstream has their own boilerplate/components/templates, the installer won’t copy maryUI starter template. Because maryUI is not the main part on your project, but breeze/jetstream.

And officially maryUI was not tested on L11, because it was not released.