Closed wimurk closed 5 years ago
The class name is a bug. It definitely should be uppercase words.
I'm not sure what is causing the route to be cut at the dot, I will investigate and get back to you.
The last one is because the json file is missing from your system.
Thanks for bringing these to our attention.
In the template command the line
$name = ucfirst(snake_case($this->getNameArgument()));
change to
$name = ucwords($this->getNameArgument());
I fixed the issue with the dot in https://github.com/whitecube/nova-page/pull/17 The problem was the explode on the name for the type and key variable.
Changing it to explode only on the first dot, fixes the issue
PSR
When running the command
php artisan make:template AboutUs
the package creates a template with the nameAbout_us
this conflicts with the rest of the laravel code (uppercase words)MyControllerHere.php
routing
Next when changed the template name to
AboutUs
and creating a route like :Looks like the dot is removed ?
Front
Don't know if i am missing something