Este tutorial tem como objetivo, a configuração do seu apache local para trabalhar com subdominios no laravel.
O que será utilizado:
- Laravel
- Servidor Apache
- Servidor DNS/DHCP
- Linux
/* | |
After VS2010 compiles the generator, the DOS interface will flash back, | |
terms of settlement: | |
1. Add getchar () after the source program; | |
2. After adding header file, write system ("pause") before the end of main function; | |
*/ | |
#include <stdio.h> | |
#include <string.h> | |
#include <time.h> | |
#include <Windows.h> |
ruby -e "`gem list`.split(/$/).each { |line| puts `gem uninstall -Iax #{line.split(' ')[0]}` unless line.empty? }" |
<?php | |
require 'recipe/symfony.php'; | |
server('NOME_SERVIDOR', 'IP_SERVIDOR', PORTA_SSH) | |
->user('USUARIO') | |
->forwardAgent() | |
->stage('PRODUCTION_DEVELOPMENT_TESTE') | |
->env('deploy_path', 'caminho'); |
// Controller | |
public function store(Request $request) | |
{ | |
$input = $request->all(); | |
$curso = new Curso(); | |
$curso->nome_curso = $input['nome_curso']; |
[ | |
{ | |
"nome" : "Bruno Pereira ", | |
"cpf" : "55555555555", | |
"e_mail" : "NOVO", | |
"password" : "12345678", | |
"telefone" : "3194570974", | |
"celular" : "3194570974" | |
} | |
] |
public function create(){ | |
/* | |
* URI: api/anuncios/create | |
* METHODO: POST | |
* FORMATO : form-data | |
*/ | |
$json_params = json_decode(file_get_contents('php://input')); |
public function create($params){ | |
// Novo produto | |
$sql_produto = "INSERT INTO $this->table_produtos | |
(nome, descricao,estado_de_conservacao,valor,categoria_id,usuario_id) | |
VALUES(:nome,:descricao,:estado_de_conservacao,:valor,:categoria_id,:usuario_id)"; | |
// Ultimo produto registrado |
[ | |
{ | |
"nome" : "Gol G3 2103", | |
"descricao" : "Produto TEESTS", | |
"estado_de_conservacao" : "NOVO", | |
"valor" : "12.000,00", | |
"categoria_id" : "2", | |
"usuario_id" : "4" | |
} | |
] |
var httpWebRequest = (HttpWebRequest)WebRequest.Create("http://url"); | |
httpWebRequest.ContentType = "text/json"; | |
httpWebRequest.Method = "POST"; | |
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream())) | |
{ | |
string json = "{\"user\":\"test\"," + | |
"\"password\":\"bla\"}"; | |
streamWriter.Write(json); |