Posts by Iago Carvalho • 181 points
4 posts
-
6
votes3
answers5954
viewsA: How to upload to Laravel 5.7
A simple way too and.. if($request->hasFile('img')){ Checks if the file exists $image = $request->file('img'); Stores the file in the image variable $name =…
-
3
votes1
answer878
viewsA: Contact Form does not send a message - UOL Host
<?php $to = '[email protected]'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' .…
-
0
votes2
answers727
viewsA: Which files go up in an Laravel project
You must climb all but the directory: Vendor Node-modules - using npm .env - because it configures again on the server and well up the . env-example log files when you are in production only execute…
-
5
votes4
answers7933
viewsA: How to upgrade Node.js from version 8 to 10 on Linux Ubuntu, via SSH?
Use the npm module to update the Node sudo npm cache clean -f sudo npm install -g n sudo n stable To upgrade to the latest version (and not current stable), you can use sudo n latest…