The API return error like this:
{
"message": "Class Api\\Controllers\\AuthController does not exist",
"status_code": 500,
"debug": {
"line": 280,
...
<?php | |
$to = "[email protected]"; // REPLACE | |
$subject = "Test mail"; | |
$message = "Hello! This is a simple email message."; | |
$from = "[email protected]"; | |
$headers = "From:" . $from; | |
mail($to,$subject,$message,$headers); | |
echo "Mail Sent."; |
#!/bin/bash | |
# Thanks to https://gist.github.com/Lewiscowles1986/ce14296e3f5222082dbaa088ca1954f7 | |
if [ "$(whoami)" != "root" ]; then | |
echo "Run script as ROOT please. (sudo !!)" | |
exit | |
fi | |
echo "deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi" > /etc/apt/sources.list.d/stretch.list | |
echo "APT::Default-Release \"jessie\";" > /etc/apt/apt.conf.d/99-default-release |
<?php | |
use DB; | |
Route::get('/plaintext', function() { | |
return 'Hello, world!'; | |
}); | |
Route::get('/json', function() { | |
return [ |
This is my take on how to get up and running with NGINX, PHP-FPM, MySQL and phpMyAdmin on OSX Yosemite.
This article is adapted from the original by Jonas Friedmann. Who I just discovered is from Würzburg in Germany. A stonesthrow from where I was born ;)
Make sure you have the latest version of XCode installed. Available from the Mac App Store.
Install the Xcode Command Line Tools:
xcode-select --install
<?php | |
namespace App\Http\ViewComposers; | |
use Illuminate\View\View; | |
use App\Http\Requests; | |
class TitleComposer | |
{ |
<?php | |
namespace App\Support\ViewPresenter; | |
trait PresentableTrait | |
{ | |
/** | |
* View presenter instance. | |
* | |
* @var mixed |
server { | |
listen 80; | |
server_name localhost; | |
root /Users/YOUR_USERNAME/Sites; | |
access_log /Library/Logs/default.access.log main; | |
location / { | |
include /usr/local/etc/nginx/conf.d/php-fpm; | |
} |
#!/usr/bin | |
open -a Google\ Chrome --args --disable-web-security --user-data-dir |