我试图在我的特定路径中创建迁移表
php artisan make:migration create_options_table --create=site_options --path='Nitseditor/Nitseditor/Database'
我收到错误
[ErrorException]
数组到字符串转换
我的目录结构:
帮助我解决这个问题。
答案 0 :(得分:1)
嗯,如果不知道我应该检查哪个文件以及哪一行,那么只有 ofstream print_file;
print_file.open("PrintOut.txt"); // All records written to this file
for (int i = 0; i < 57; i++) // Exactly 57 records
{
// Here I'm just writing each field of the occupant record in a formatted method to the file.
print_file << "\nRecord for occupant in appartment number " << Occupant::occupant_apartments[i] << ":\n";
print_file << "\tOccupant Name: " << this->occupant_name[i] << endl;
print_file << "\tLeasing Rights: ";
if (this->occupant_leased[i] == "Yes")
print_file << " Authorized" << endl;
else if (this->occupant_leased[i] == "No")
print_file << " Unauthorized" << endl;
else
print_file << " Empty Appartment" << endl;
print_file << "\tParking Issued: " << this->occupant_parking[i] << endl;
}
// Here I'd like to add the code (or make my own code) that will be able to open up Notepad to display the file PrintOut.txt
}
总是很难。
首先检查日志Exception
以获取抛出异常的跟踪。在那里你会找到解决问题的关键。例如:
tail storage/logs/laravel.log -n 100