1

How do you create a mysql view using php artisan? Can't find any documentation on it???

Google and Bing aren't returning much at all!

documentation for Laravel: http://laravel.com/docs/migrations

4
  • why do you want to create a view using artisan? Commented Jun 29, 2014 at 22:34
  • The migration... Instead of creating a table, I need to create and version control a view. Hope that helps... The negative vote is absolutely shocking... Remove it to make sure I don't facepalm. Commented Jun 29, 2014 at 22:37
  • 1
    You can run raw queries to do that (in a migration file) Commented Jun 29, 2014 at 22:56
  • Cool... that'll do it mate.. Thanks Commented Jun 29, 2014 at 23:10

1 Answer 1

-2

Your question is a little unclear. It seems you may not understand the difference between Views, Migrations and MySQL Tables.

Migrations can be created with Artisan via php artisan make:migration ... or manually. They contain code that create MySQL Tables.

Views are template files that display a page for end users to interact with. In Laravel, Views are Blade Templates.

Artisan does not offer a command for creating Views. But there are Composer packages you can install that will extend Artisan with such functionality.

Sign up to request clarification or add additional context in comments.

1 Comment

@spencer-hill :) Thanks for trying. I do appreciate it. Take a look at MySQL views using kirk-beard's link. They are useful tool to get to know for your exploration into programming. Good luck dude.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.