Can laravel create a view inside resources/views? - laravel

I have succesfully been able to create a file inside Storage / Public, but I am wondering if anyone knows if you can create a view inside resources/views with any laravel functions?

Currently there is no direct command to do this but you can use the package Artisan View. This package adds a couple of view-related commands to Artisan in your Laravel projects. You can try this : Artisan View

Related

How to create a custom Error 419: Page Expired in Laravel?

Can you help me on how to customize the default Page Expired page in Laravel?
BTW, I'm new to Laravel.
There's a way to override this view. All you need to do is create 419.blade.php file inside the resources/views/errors folder.
If you need to find the Laravel's default 419.blade.php file, you can publish vendor files:
php artisan vendor:publish --tag=laravel-errors

Laravel automated view generation from models

In Laravel, I can create models and controllers automatically from the command line using
artisan
However, There is no command to generate views automatically based on the the model for CRUD operations. Wonder if there is a tool that would make this out of the box. I imagine this:
php artisan make:view model
and then I have all my views ready. I tried to search online but could not find a proper tool: LarvelCodeGenerator, and others...
Have you taken a look at Laravel View Generator.

Laravel 5 - Automatic view file with form is possible?

when I run the command "php artisan make:auth" login functionality related stuff created automatically. There are view files also created. Is there any way to generate view files with my model fields, like how tha command is doing??!!
Yes, you can do that, creating custom artisan commands.
https://laravel.com/docs/5.2/artisan#writing-commands

Laravel showing blank page

I just setup a Laravel 5 framework in my server by typing in terminal
laravel new blog (in "/var/www/html/" folder),
then changed the default config of Nginx so the root pointing to : root /var/www/html/blog/public;
of-course all the files are in place however I currently just see a blank page showing up ! I tried to put a html & PHP file in public folder and it all works fine. but not Laravel default index file. what am I missing here ?
For adding pages in Laravel you do not simply put files in /public. Please have a look at the official Laravel page if you want to create new views.
Laravel uses the MVC principle. So you need to have at least a view (the part which is displayed) and a controller which handles the view. To add a new Controller, please change to the project root cd /var/www/html/blog and type in php artisan controller:make AwesomeController which creates the controller in app/Http/Controllers/AwesomeController.php.
In this Controller you can simply return a view by adding return view('myview') to the index() Method for example. (The view has to exist at resources/views/myview.blade.php of course)
In the last step you need to tell Laravel how to call your controller. Please modify the routes.php file at app/Http/routes.php and add Route::get('foo', 'AwesomeController');. Now you need to tell composer that some of your controllers may have changed and composer needs to refresh the cache. Type in composer dump-autoload and start the development server php artisan serve.
By calling http://localhost:8000/foo (by default) you should see your View. Have a nice day!

Create a Resource Controller?

I'm trying to make a resource controller in my package but i'm not sure how to do it.
Normally I would use:
php artisan controller:make MyController
But how can I make it so this is created in my package?
If you take a look at php artisan help controller:make you will see that there is a path option, so I guess that's what you're looking for.
Another option would be to explore the workbench which will make things easier while developing a package

Resources