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
Route::get('/', function () { | |
return view('welcome'); | |
}); | |
Route::get('/novarota', function(){ | |
return '<h1>Primeira logica do Laravel</h1>'; | |
}); | |
Route::get('/novarota', function(){ | |
return '<h1>Nova rota do laravel</h1'; | |
}); | |
/* |
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
- Modo de manutenção: php artisan down ou php artisan down --message="Upgrading Database" --retry=60 | |
- Desativar o modo de manutenção: php artisan up |
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
$ git remote rm origin | |
$ git remote add origin git@github.com:aplikacjainfo/proj1.git | |
$ git config master.remote origin | |
$ git config master.merge refs/heads/master | |
criar um novo Branch | |
git checkout -b NOME DO BRANCH |
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
1 - Dep: composer create-project --prefer-dist laravel/laravel blog "5.4.*" | |
2 - Ativar: php artisan serve | |
3 - Editar arquivo .env -> variaveis Globais | |
4 - Estrutura | |
Controllers - Pasta app | |
Rotas - Pasta routes | |
Views - Pasta resources | |
5 - Laravel URL Amigável -> /blog/ | |
6 - Controllers - app | |
Http |
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
1- Subindo um projeto | |
- git init | |
- git add --all | |
- git commit -m "commit inicial" | |
- git remote add origin https://github.com/dieissonmartins/nome-projeto.git | |
- git push origin master | |
2- Clonando um projeto | |
- git clone https://github.com/dieissonmartins/nome-projeto.git | |
-*entre na pasta do projeto |
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
https://packagecontrol.io/packages/LaravelCollective%20HTML%20Form%20Snippets |
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
Executar seed | |
-php artisan db:seed --class=UsersTableSeeder |
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
PROJETOS DE SISTEMAS DE TI | |
-processo de desenvolvimento de um sistema | |
-levantamento dos requisitos | |
-manutenção do software | |
Tópico 1: Métodos e Metodologias | |
- planejamento | |
- elaboração do projeto | |
"Em outras palavras, com um projeto bem elaborado, o sistema atenderá as expectativas e as necessidades de quem o encomendou" |
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
reverter migration | |
- p artisan migrate:rollback | |
criar model | |
- php artisan make:model Project |
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 |
OlderNewer