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 }}/{{ docName }} | |
</div> | |
<editor-content class="editor__content" :editor="editor" /> | |
</template> | |
<em v-else> | |
Connecting to socket server … |
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 … |
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. | |
* |
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
{ | |
"name": "Listen for XDebug on Docker App", | |
"type": "php", | |
"request": "launch", | |
"port": 9000, | |
"pathMappings": { | |
"/var/www/html": "${workspaceFolder}" | |
}, | |
"hostname": "localhost", | |
"xdebugSettings": { |
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 | |
{ |
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 |
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; |
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; |
NewerOlder