Product Attribute Management in Laravel, storing Product attributes such as Size, Color, Weight.
Products (id, name, desc, visible)
# 1, Shirt, Description, true
# 2, Laptop, Description, true
<?php | |
namespace App\Models; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Database\Eloquent\Concerns\HasUuids; | |
use Illuminate\Support\Str; | |
/** | |
* Uuid class |
<script setup> | |
import { useAttrs, ref } from 'vue'; | |
const emits = defineEmits(['update:modelValue', 'valid', 'invalid']); | |
const props = defineProps({ | |
modelValue: [String, Number], | |
name: { type: String }, | |
label: { type: String }, | |
placeholder: { type: String }, |
<script setup> | |
import editIcon from '@/assets/svg/edit-svgrepo-com.svg?raw'; | |
</script> | |
<template> | |
<div class="svg-icon" v-html="editIcon"></div> | |
</template> | |
<style> | |
.svg-icon { |
// First example | |
export default class Singleton { | |
number = 0; | |
constructor() { | |
if (!!Singleton.instance) { | |
return Singleton.instance; | |
} | |
Singleton.instance = this; | |
// return this; | |
} |
function jsonEscape(str) { | |
return str.replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t"); | |
} | |
function jsonEscapeCode(str) { | |
return str.replace(/"/g, '\\"').replace(/'/g, "\'"); | |
} | |
let code = jsonEscapeCode(`<?php | |
$name = "Benny's"; |
https://consumer.huawei.com/pl/support/content/pl-pl00688529/
wmic bios get serialnumber