Laravel
3
Вклад в тег
$models = Model::select("id","num")->get();
foreach($numbers as $num){
if (!$models->where("num",$num)->first()) {
\DB::table("table_name")->insert(["num"=>$num]);
}
}
$models = Model::select("id","num")->whereIn("num",$numbers)->get();
foreach($numbers as $num){
if (!$models->where("num",$num)->first()) {
\DB::table("table_name")->insert(["num"=>$num]);
}
}
import { createResolver } from '@nuxt/kit';
const { resolve } = createResolver(import.meta.url)
export default defineNuxtConfig({
devtools: { enabled: true },
css:[
'@style',
],
alias: {
'@style': resolve('./assets/app.scss')
},
})