How do i check, when php artisan migrate
is working, has database view?
Something like this,
if(Schema::hasView('search_content')) {
return;
}
Try this,
\DB::select("SELECT * FROM information_schema.VIEWS WHERE TABLE_NAME='table_name'")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With