Dans ce guide, nous allons créer un nouveau serveur Cloud hébergé par Infomaniak et managé via Laravel Forge afin de le provisionner avec les composants nécessaires pour faire tourner un serveur web complet (nginx, mysql & 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 | |
use Acme\MyNovaField\MySerializableNovaFieldValue; | |
// ... | |
protected function fillAttributeFromRequest(NovaRequest $request, $requestAttribute, $model, $attribute) | |
{ | |
if (!$request->exists($requestAttribute)) return; |
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 | |
protected function fillAttributeFromRequest(NovaRequest $request, $requestAttribute, $model, $attribute) | |
{ | |
if ($request->exists($requestAttribute)) { | |
$value = $this->handleIncomingRequestValue($request[$requestAttribute]); | |
// Now we're storing a verified or manipulated value | |
$model->{$attribute} = $value; | |
} |
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 | |
protected function fillAttributeFromRequest(NovaRequest $request, $requestAttribute, $model, $attribute) | |
{ | |
if ($request->exists($requestAttribute)) { | |
$model->{$attribute} = $request[$requestAttribute]; | |
} | |
} |
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
/* | |
# HTML email gulpfile - workflow | |
This is my standard file for an e-mailing project. Useful for : | |
- creating e-mail templates using SASS | |
- automatically minify your images | |
- inline generated css in your html file | |
## How to install |
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
$script = <<SCRIPT | |
START_TIME=$SECONDS | |
# ------------------ ESSENTIALS | |
apt-get update | |
apt-get install -y unzip vim git-core curl wget build-essential python-software-properties | |
# ------------------ INSTALL NGINX | |
apt-get install -y nginx | |
sudo service nginx start |