View index.php
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 | |
$name = $_REQUEST['name']; | |
$hello = "Bonjour " . $name . " !"; | |
echo $hello; |
View dockerfile
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
FROM php:7.4-apache | |
# Install Xdebug | |
RUN pecl install -f xdebug | |
RUN echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini; |
View docker-compose.yml
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
version: '3.5' | |
services: | |
# Our application to debug | |
app: | |
container_name: tuto-xdebug | |
build: | |
context: ./ | |
dockerfile: ./dockerfile |
View HasRevisionsWithDiffs.php
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 | |
namespace App\Models\Traits; | |
// use Illuminate\Database\Eloquent\Collection; | |
use SN\DaisyDiff\DaisyDiff; | |
use Neurony\Revisions\Traits\HasRevisions; | |
trait HasRevisionsWithDiffs | |
{ |
View trustedproxy.php
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 | |
return [ | |
/* | |
* Set trusted proxy IP addresses. | |
* | |
* Both IPv4 and IPv6 addresses are | |
* supported, along with CIDR notation. | |
* |
View Editor.vue
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
<template> | |
<div class="editor"> | |
<template v-if="editor && !loading"> | |
<div class="count"> | |
{{ count }} {{ count === 1 ? 'user' : 'users' }} connected to {{ projectPath }} | |
</div> | |
<editor-content class="editor__content" :editor="editor" /> | |
</template> | |
<em v-else> | |
Connecting to socket server … |
View FormElement.vue
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
<template> | |
<div class="form-element"> | |
<div>{{ field.title }}</div> | |
<slot :value="field.value"></slot> | |
<div v-if="empty" class="empty">Must not be empty</div> | |
</div> | |
</template> |
View CustomForm.vue
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
<template> | |
<div> | |
<FormElement :field="name"> | |
<template v-slot="{value}"> | |
<input v-model="value"> | |
</template> | |
</FormElement> | |
<FormElement :field="description"> | |
<template v-slot="{value}"> | |
<textarea v-model="value"/> |
View CustomForm.vue
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
<template> | |
<div> | |
<FormElement :field="name"> | |
<template v-slot="{value, update}"> | |
<input :value="value" @input="update"> | |
</template> | |
</FormElement> | |
<FormElement :field="description"> | |
<template v-slot="{value, update}"> | |
<textarea :value="value" @input="update"/> |
View FormElement.vue
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
<template> | |
<div class="form-element"> | |
<div>{{ field.title }}</div> | |
<slot :value="field.value" :update="update"></slot> | |
<div v-if="empty" class="empty">Must not be empty</div> | |
</div> | |
</template> |
OlderNewer