This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"product": {..data..} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function generateFormData() { | |
// define upload field | |
let file_input = document.getElementById('profile_picture'); | |
// define form data | |
let data = new FormData(); | |
// Add regular text field | |
data.append("name", "John Doe"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class FIK | |
{ | |
const REQUIRED_LENGTH = 15; | |
const INVOICE_ID = 0; | |
const REMINDER_ID = 3; | |
public function generate( $invoiceNumber = 1, $isReminder = false ): string | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#login { | |
position: absolute; | |
left: 50%; | |
top: 50%; | |
margin-left: -150px; /* halvdelen af input bredden */ | |
margin-top: -34px; /* halvdelen af input højde x 2 + input margin-bottom */ | |
} | |
/* eller bare brug flexbox */ | |
body { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {mix} = require('laravel-mix'); | |
mix.js('js/app.js', 'public/js') | |
.sass('sass/app.sass', 'public/css') | |
.version(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'vendor/autoload.php'; | |
require_once 'mix.php'; | |
?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
</head> | |
<title>Demo</title> | |
<link rel="stylesheet" href="<?php echo mix('public/css/app.css'); ?>" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (! function_exists('mix')) { | |
/** | |
* Get the path to a versioned Mix file. | |
* | |
* @param string $path | |
* @param string $manifestDirectory | |
* @return \Illuminate\Support\HtmlString | |
* | |
* @throws \Exception |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"private": true, | |
"scripts": { | |
"dev": "node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", | |
"watch": "node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", | |
"hot": "node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", | |
"production": "node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" | |
}, | |
"dependencies": { | |
"cross-env": "^3.2.3", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {mix} = require('laravel-mix'); | |
mix.js('js/app.js', 'public/js') | |
.sass('sass/app.sass', 'public/css'); |