Created
April 17, 2019 21:37
-
-
Save dieissonmartins/14e53ace043fe8fee21f5b87178c7974 to your computer and use it in GitHub Desktop.
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
PS C:\wamp64\www\websites\project> php artisan tinker | |
Psy Shell v0.9.9 (PHP 5.6.35 ÔÇö cli) by Justin Hileman | |
>>> 2+2 | |
=> 4 | |
>>> App\Project::All(): | |
PHP Parse error: Syntax error, unexpected ':' on line 1 | |
>>> App\Project::All(); | |
=> Illuminate\Database\Eloquent\Collection {#706 | |
all: [ | |
App\Project {#707 | |
id: 1, | |
title: "Prometheus", | |
description: "Prometheus Sistema de Controle de Estoque", | |
created_at: "2019-04-01 00:00:00", | |
updated_at: null, | |
}, | |
], | |
} | |
>>> All\Project::firt(); | |
PHP Fatal error: Class 'All/Project' not found in Psy Shell code on line 1 | |
>>> All\Project::first(); | |
PHP Fatal error: Class 'All/Project' not found in Psy Shell code on line 1 | |
>>> All\Project::latest()->first(); | |
PHP Fatal error: Class 'All/Project' not found in Psy Shell code on line 1 | |
>>> App\Project::first(); | |
=> App\Project {#712 | |
id: 1, | |
title: "Prometheus", | |
description: "Prometheus Sistema de Controle de Estoque", | |
created_at: "2019-04-01 00:00:00", | |
updated_at: null, | |
} | |
>>> App\Project::latest()->first(); | |
=> App\Project {#710 | |
id: 1, | |
title: "Prometheus", | |
description: "Prometheus Sistema de Controle de Estoque", | |
created_at: "2019-04-01 00:00:00", | |
updated_at: null, | |
} | |
>>> App\Project = new App\Project; | |
PHP Parse error: Syntax error, unexpected '=' on line 1 | |
>>> $project = new App\Project; | |
=> App\Project {#691} | |
>>> $project->title = 'My Project line 2'; | |
=> "My Project line 2" | |
>>> $project->description 'lorem ipsum line 2'; | |
PHP Parse error: Syntax error, unexpected T_CONSTANT_ENCAPSED_STRING on line 1 | |
>>> $project->description 'lorem ipsum line 2'; | |
PHP Parse error: Syntax error, unexpected T_CONSTANT_ENCAPSED_STRING on line 1 | |
>>> $project | |
=> App\Project {#691 | |
title: "My Project line 2", | |
} | |
>>> $project->description 'lorem ipsum line 2'; | |
PHP Parse error: Syntax error, unexpected T_CONSTANT_ENCAPSED_STRING on line 1 | |
>>> $project->description = 'lorem ipsum line 2'; | |
=> "lorem ipsum line 2" | |
>>> $project | |
=> App\Project {#691 | |
title: "My Project line 2", | |
description: "lorem ipsum line 2", | |
} | |
>>> $project->save(); | |
=> true | |
>>> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment