public function testPartialJsonResponse()
{
$response = $this->json('GET', '/api/users/1');
$response
->assertStatus(200)
->assertJsonFragment([
'name' => 'Anakin Skywalker',
]);
This file contains hidden or 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
swal({ | |
title: 'Bom trabalho!', | |
text: 'O seu pedido foi cadastrado com sucesso!', | |
icon: 'success', | |
button: 'Imprimir', | |
}) | |
.then(function () { | |
window.location.href = '/cadastro/servico' | |
}) |
{
"id": 1,
"name": "Anakin Skywalker",
"email": "[email protected]",
"created_at": "2017-02-14 01:53:04",
"updated_at": "2017-02-14 01:53:04"
}
Route::get('/api/users/{id}', function ($id) {
return App\User::find($id);
});
YOU MIGHT NOT NEED JQUERY PLUGINS
YOU MIGHT NOT NEED JQUERY
YOU MIGHT NOT NEED
YOU MIGHT NOT
YOU MIGHT
This file contains hidden or 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: '2' | |
services: | |
cstrike: | |
image: jarlefosen/cs16 | |
container_name: cs16_server | |
ports: | |
- 26900:26900/udp | |
- 27020:27020/udp | |
- 27015:27015/udp |
This file contains hidden or 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
ZSH_THEME="spaceship" | |
plugins=(git zsh-autosuggestions) | |
function artisan { | |
( php artisan $* ) | |
} | |
function phpunit { | |
( vendor/bin/phpunit $* ) |
$subject = 'flying';
switch ($subject) {
case 'flying':
$result = 'potato';
break;
case 'bacon':
$result = 'is life';