Laravelメモ。
特定テーブルの全カラム名を取得する。
use Illuminate\Support\Facades\Schema;
class HogeContoroller extends Controller
{
public function someFunction()
{
$columns = Schema::getColumnListing('mytables')
}
}
Go to list of users who liked
More than 5 years have passed since last update.
Laravelメモ。
特定テーブルの全カラム名を取得する。
use Illuminate\Support\Facades\Schema;
class HogeContoroller extends Controller
{
public function someFunction()
{
$columns = Schema::getColumnListing('mytables')
}
}
Register as a new user and use Qiita more conveniently
Go to list of users who liked