I want to rename a table in Laravel 4, but don\'t know how to do that.
The SQL is alter table photos rename to images. If there is an Eloquent solution,
alter table photos rename to images
You can also use DB::unprepared for ALTER TABLE queries.
DB::unprepared
ALTER TABLE
DB::unprepared is meant to be used for queries like CREATE TRIGGER. But essentially it executes raw sql queries directly. (without using PDO prepared statements)
CREATE TRIGGER
prepared
https://github.com/laravel/framework/pull/54