Laravel 5.2 - Create Database table from a Controller You're using the Schema facade. Make sure you have use Schema; at the top of your file too.