Creating controller through cmd promt in Laravel?

0 votes
How can i create controller using command promt and not have to write implicitly to create controller/
Mar 18 in Laravel by kartik
• 16,870 points
35 views

1 answer to this question.

0 votes

Hey ,

This is simple, you just need to type the following command in command promt

php artisan make:controller User

This will work, so if you want to check wheather controller created successfully.

Go to Http folder of laravel  and and then controllers. You will see user.php controller will be created.

Thank you!!

answered Mar 18 by Niroj
• 35,060 points

Related Questions In Laravel

0 votes
1 answer

What is the concept of controller in Laravel?

Hii, In the MVC framework, the letter ‘C’ ...READ MORE

answered Mar 18 in Laravel by Niroj
• 35,060 points
45 views
0 votes
1 answer

What are named routes in Laravel and How can specify route names for controller actions?

Hey @kartik, Named routing is another amazing feature of ...READ MORE

answered Mar 23 in Laravel by Niroj
• 35,060 points
629 views
0 votes
1 answer

Error:Laravel [InvalidArgumentException] Script “post-install-cmd” is not defined in this package

Hello @kartik, Do composer global update before laravel new <project-name> and you'll ...READ MORE

answered Apr 6 in Laravel by Niroj
• 35,060 points
75 views
0 votes
1 answer

What is reverse routing in Laravel?

 Laravel reverse routing is generating URL's based ...READ MORE

answered Mar 17 in Laravel by Niraj
745 views
0 votes
1 answer

What is Laravel framework? Why one should use Laravel?

Laravel is a PHP web-framework; it utilized ...READ MORE

answered Mar 17 in Laravel by Niroj
• 35,060 points
101 views
0 votes
1 answer

How to download and install Lavavel framework?

Hey @kartik, First you must have xampp install ...READ MORE

answered Mar 17 in Laravel by Niroj
• 35,060 points
104 views
0 votes
1 answer

How can we get started with Laravel through Xampp?

Hii, First you need to start Apache and ...READ MORE

answered Mar 17 in Laravel by Niroj
• 35,060 points
49 views
0 votes
1 answer

What are the important directories used in a common Laravel application

Hey @Kartik. Directories used in a common Laravel ...READ MORE

answered Mar 17 in Laravel by Niroj
• 35,060 points
48 views
0 votes
1 answer

Display Laravel in browser by using cmd promt?

Hello, First you need to have laravel install ...READ MORE

answered Mar 17 in Laravel by Niroj
• 35,060 points
39 views
0 votes
1 answer

How to pass data through URL and access through controller in Laravel?

Hello, You can  first refer how to  Create controller through ...READ MORE

answered Mar 18 in Laravel by Niroj
• 35,060 points
517 views