If you have to extend an existing object with additional property, always prefer Vue.set()
over Object.assign()
(or spread operator).
Example below explains implications for different implementations.
<script setup> | |
import { reactive, onMounted } from 'vue'; | |
const props = defineProps({ | |
is: String, | |
icons: Array, | |
}); | |
const list = reactive({}); |
<?php | |
if( ! function_exists('pipe')) { | |
function pipe($payload, $steps = []) | |
{ | |
return app(\Illuminate\Pipeline\Pipeline::class) | |
->send($payload) | |
->through($steps) |
<?php | |
namespace App\Providers; | |
class FilesystemMockProvider extends ServiceProvider | |
{ | |
public function boot() | |
{ | |
if (App::isProduction()) { | |
return; |
/* | |
Initial concept from: https://seesparkbox.com/foundry/how_to_code_an_SVG_pie_chart | |
Vue.js component by Darius Babcock | |
*/ | |
<template> | |
<div class="pie_chart_svg_container"> | |
<svg | |
:height="diameter" | |
:width="diameter" |
<?php | |
function getFormattedNumber( | |
$value, | |
$locale = 'en_US', | |
$style = NumberFormatter::DECIMAL, | |
$precision = 2, | |
$groupingUsed = true, | |
$currencyCode = 'USD', | |
) { |
module.exports = { | |
root: true, | |
env: { | |
browser: true, | |
node: true, | |
}, | |
extends: [ | |
'eslint:recommended', | |
'plugin:vue/vue3-recommended', | |
'prettier' |
Pivot tables can be confusing and a little hard to wrap your head around at first. In this quick article we are going to dive into what a pivot table is, how to create one and finally how to use the pivot table. Let's dive in!
A pivot table is used to connect relationships between two tables. Laravel provides a Many To Many
relationship where you can use a pivot table.
; see YouTube video: https://youtu.be/T9hfgkKgKOU | |
[program:laravel-worker] | |
process_name=%(program_name)s_%(process_num)02d | |
command=php /home/vagrant/project_folder/artisan queue:listen --tries=3 | |
autostart=true | |
autorestart=true | |
stopasgroup=true | |
killasgroup=true | |
user=vagrant |
<?php | |
namespace App; | |
class Composer extends \Illuminate\Support\Composer | |
{ | |
public function run(array $command) | |
{ |