MasoniteFramework / masonite

The Modern And Developer Centric Python Web Framework. Be sure to read the documentation and join the Discord channel for questions: https://discord.gg/TwKeFahmPZ
http://docs.masoniteproject.com
MIT License
2.21k stars 126 forks source link

Modify craft controller command #783

Closed eaguad1337 closed 9 months ago

eaguad1337 commented 11 months ago

Describe the bug

The craft controller command creates a controller that returns a view named "" (empty string). It confuses the people that are learning about the framework.

Expected behaviour

I suggest to make welcome the default view for controllers

Steps to reproduce the bug

  1. use craft make controller
  2. See that the controller return view.render("")

Screenshots

No response

OS

macOS

OS version

Sonoma 14.1.2

Browser

No response

Masonite Version

4.19.1

Anything else ?

No response