-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
Be able to generate views from the command line ? #14517
Comments
You can create your own, https://gist.github.com/umefarooq/ebc617dbf88260db1448 |
And I can call it in the same way ? |
Like this,
it will create |
Awesome that is what I need :) |
Decided to reopen to see if there is any change that this can be placed into the core. It adds to the workflow of artisan in my opinion. Instead of switching to my code editor. |
I guess we could use a default command for creating blade views, maybe also with some commands to populate the file like:
Something like that but with a better syntax? |
it has been proposed before and closed. while I maybe came off super anti view command in the last post, it doesn't really matter to me either way. it's such a trivial thing that it just becomes a bikeshedding. |
There's no default view, it's not like a controller that has a default structure, you can create your views however you desire so i guess it would be hard and maybe useless to come out with a default syntax for going along with the artisan make command. |
Maybe that is the case but wouldn't there be a middleway ? I liked the idea to create extends and maybe insert content sections. I know it can be trivial but then again why not give the options to create Basic views. |
If the command creates only empty views you can 'touch' the file instead of php artisan make:view. |
I agree but why not create that option so you can create a file that extends and holds a number of sections ? -------- Oorspronkelijk bericht -------- If the command creates only empty views you can 'touch' the file instead of php artisan make:view. It would make sense using a command if it creates some kind of default view, maybe a copy of welcome.blade.php (make:auth)... — |
Closing since it's not a bug report, you can continue discussions on the https://github.com/laravel/internals repo though. |
In laravel 8.x.x the phpartisan make:view auth/login |
Hello everyone,
I am busy creating a base system for our company and just started creating the controllers and models.
Now I know normally I would not be able to create views from the command line.
But is it an option to intergrate it in a like this :
Please let me know if this is a option to intergrate or not.
I am kinda new to contributing to opensource.
Best regards,
Wouter.
The text was updated successfully, but these errors were encountered: