├── public ├── favicon.ico ├── robots.txt ├── .htaccess └── index.php ├── app ├── Listeners │ ├── .gitkeep │ └── TestEventListener.php ├── Events │ ├── Event.php │ ├── TestEvent.php │ └── OtherTestEvent.php ├── Http │ ├── Requests │ │ ├── Request.php │ │ ├── PostStoreRequest.php │ │ └── PostUpdateRequest.php │ ├── Controllers │ │ ├── Controller.php │ │ ├── WelcomeController.php │ │ ├── Auth │ │ │ ├── ResetPasswordController.php │ │ │ ├── ForgotPasswordController.php │ │ │ ├── LoginController.php │ │ │ └── RegisterController.php │ │ ├── UsersController.php │ │ ├── Api │ │ │ └── PostsController.php │ │ ├── PostsController.php │ │ └── HomeController.php │ ├── Middleware │ │ ├── VerifyCsrfToken.php │ │ ├── RedirectIfAuthenticated.php │ │ └── Authenticate.php │ ├── Kernel.php │ └── routes.php ├── Test │ ├── StringConverter.php │ ├── ToLowercase.php │ ├── ToUppercase.php │ └── Repeat.php ├── Post.php ├── Validation │ └── CustomValidator.php ├── Jobs │ └── Job.php ├── Providers │ ├── ConfigServiceProvider.php │ ├── EventServiceProvider.php │ ├── RouteServiceProvider.php │ └── AppServiceProvider.php ├── Console │ ├── Kernel.php │ └── Commands │ │ ├── Inspire.php │ │ └── CreateUser.php ├── User.php └── Exceptions │ └── Handler.php ├── database ├── seeds │ ├── .gitkeep │ ├── DatabaseSeeder.php │ └── UserTableSeeder.php ├── migrations │ ├── .gitkeep │ ├── 2014_10_25_122420_create_posts_table.php │ ├── 2014_10_12_100000_create_password_resets_table.php │ └── 2014_10_12_000000_create_users_table.php ├── .gitignore └── factories │ └── ModelFactory.php ├── .gitattributes ├── resources ├── views │ ├── vendor │ │ └── .gitkeep │ ├── flash.blade.php │ ├── auth │ │ ├── emails │ │ │ └── password.blade.php │ │ ├── password.blade.php │ │ ├── reset.blade.php │ │ ├── login.blade.php │ │ └── register.blade.php │ ├── service-container.blade.php │ ├── form.blade.php │ ├── home.blade.php │ ├── special-characters.blade.php │ ├── hello.blade.php │ ├── users │ │ ├── show.blade.php │ │ └── edit.blade.php │ ├── posts │ │ ├── create.blade.php │ │ ├── show.blade.php │ │ ├── edit.blade.php │ │ └── index.blade.php │ ├── errors │ │ └── 503.blade.php │ ├── welcome.blade.php │ ├── layouts │ │ └── scaffold.blade.php │ └── app.blade.php ├── assets │ └── less │ │ ├── bootstrap │ │ ├── mixins │ │ │ ├── center-block.less │ │ │ ├── text-emphasis.less │ │ │ ├── size.less │ │ │ ├── background-variant.less │ │ │ ├── opacity.less │ │ │ ├── text-overflow.less │ │ │ ├── tab-focus.less │ │ │ ├── labels.less │ │ │ ├── resize.less │ │ │ ├── progress-bar.less │ │ │ ├── nav-divider.less │ │ │ ├── reset-filter.less │ │ │ ├── alerts.less │ │ │ ├── nav-vertical-align.less │ │ │ ├── responsive-visibility.less │ │ │ ├── pagination.less │ │ │ ├── border-radius.less │ │ │ ├── panels.less │ │ │ ├── list-group.less │ │ │ ├── hide-text.less │ │ │ ├── clearfix.less │ │ │ ├── table-row.less │ │ │ ├── image.less │ │ │ ├── buttons.less │ │ │ ├── forms.less │ │ │ ├── grid-framework.less │ │ │ └── grid.less │ │ ├── wells.less │ │ ├── breadcrumbs.less │ │ ├── responsive-embed.less │ │ ├── close.less │ │ ├── media.less │ │ ├── component-animations.less │ │ ├── thumbnails.less │ │ ├── utilities.less │ │ ├── pager.less │ │ ├── jumbotron.less │ │ ├── mixins.less │ │ ├── bootstrap.less │ │ ├── labels.less │ │ ├── badges.less │ │ ├── code.less │ │ ├── grid.less │ │ ├── alerts.less │ │ ├── progress-bars.less │ │ ├── pagination.less │ │ ├── print.less │ │ ├── scaffolding.less │ │ ├── tooltip.less │ │ ├── list-group.less │ │ ├── popovers.less │ │ └── modals.less │ │ └── app.less └── lang │ └── en │ ├── pagination.php │ └── passwords.php ├── storage ├── .gitignore ├── app │ └── .gitignore ├── logs │ └── .gitignore └── framework │ ├── cache │ └── .gitignore │ ├── views │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── bootstrap ├── cache │ └── .gitignore ├── autoload.php └── app.php ├── tests ├── _data │ ├── dump.sql │ └── logo.jpg ├── api │ ├── _bootstrap.php │ └── PostsResourceCest.php ├── unit │ ├── _bootstrap.php │ └── UserTest.php ├── seeder │ ├── _bootstrap.php │ └── DatabaseSeederCest.php ├── _bootstrap.php ├── unit.suite.yml ├── functional │ ├── IndexCept.php │ ├── FlashCept.php │ ├── _bootstrap.php │ ├── BackCept.php │ ├── UploadedFilesCept.php │ ├── SpecialCharactersCept.php │ ├── FormCept.php │ ├── ArtisanCest.php │ ├── HelpersCest.php │ ├── RegisterCept.php │ ├── SessionCest.php │ ├── ApplicationHandlerCept.php │ ├── LoginCept.php │ ├── EditProfileCept.php │ ├── ModelFactoryCest.php │ ├── CustomValidationCest.php │ ├── RoutesCest.php │ ├── InternalDomainsCest.php │ ├── FormErrorsCest.php │ ├── ServiceContainerCest.php │ ├── RecordCest.php │ ├── AuthCest.php │ ├── PostCrudCest.php │ └── EventsCest.php ├── _support │ ├── Helper │ │ ├── Api.php │ │ ├── Unit.php │ │ ├── Functional.php │ │ └── Seeder.php │ ├── UnitTester.php │ ├── ApiTester.php │ ├── SeederTester.php │ ├── FunctionalTester.php │ └── Page │ │ └── Functional │ │ └── PostsPage.php ├── api.suite.yml ├── functional.suite.yml └── seeder.suite.yml ├── Dockerfile ├── .gitmodules ├── .env.example ├── package.json ├── phpspec.yml ├── .env.testing ├── .gitignore ├── after.sh ├── gulpfile.js ├── Homestead.yaml ├── codeception.yml ├── server.php ├── deploy └── deployment.yaml ├── phpunit.xml ├── config ├── services.php ├── view.php ├── compile.php ├── filesystems.php ├── cache.php ├── queue.php ├── auth.php └── database.php ├── .rancher-pipeline.yml ├── Vagrantfile ├── composer.json ├── .circleci └── config.yml ├── artisan └── readme.md /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/Listeners/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/seeds/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/migrations/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | -------------------------------------------------------------------------------- /resources/views/vendor/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /storage/.gitignore: -------------------------------------------------------------------------------- 1 | laravel.log -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /resources/views/flash.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.scaffold') 2 | -------------------------------------------------------------------------------- /tests/_data/dump.sql: -------------------------------------------------------------------------------- 1 | /* Replace this file with actual dump of your database */ -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:7.2 2 | COPY ./ /app/root/ 3 | CMD ["php","-S","0.0.0.0:80","-t","/app/root/public"] 4 | -------------------------------------------------------------------------------- /app/Events/Event.php: -------------------------------------------------------------------------------- 1 | wantTo('open index page of site'); 4 | $I->amOnPage('/'); 5 | $I->see('Hello World', 'h1'); 6 | -------------------------------------------------------------------------------- /tests/functional/FlashCept.php: -------------------------------------------------------------------------------- 1 | wantTo('see a flash message'); 4 | $I->amOnPage('/flash'); 5 | $I->see("It's a flash", ".flash"); 6 | -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/mixins/center-block.less: -------------------------------------------------------------------------------- 1 | // Center-align a block level element 2 | 3 | .center-block() { 4 | display: block; 5 | margin-left: auto; 6 | margin-right: auto; 7 | } 8 | -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/mixins/text-emphasis.less: -------------------------------------------------------------------------------- 1 | // Typography 2 | 3 | .text-emphasis-variant(@color) { 4 | color: @color; 5 | a&:hover { 6 | color: darken(@color, 10%); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /app/Http/Requests/Request.php: -------------------------------------------------------------------------------- 1 | {{ $converter->convert('String To Convert') }}
7 | @stop 8 | -------------------------------------------------------------------------------- /tests/_support/Helper/Api.php: -------------------------------------------------------------------------------- 1 | wantTo('redirect back using /back route'); 4 | $I->amOnPage('/'); 5 | $I->amOnPage('/back'); 6 | $I->expect('I am redirected back to /'); 7 | $I->seeCurrentUrlEquals('/'); -------------------------------------------------------------------------------- /tests/functional.suite.yml: -------------------------------------------------------------------------------- 1 | class_name: FunctionalTester 2 | modules: 3 | enabled: 4 | - Helper\Functional 5 | - Asserts 6 | - REST: 7 | depends: Laravel5 8 | - Laravel5: 9 | environment_file: .env.testing -------------------------------------------------------------------------------- /app/Post.php: -------------------------------------------------------------------------------- 1 | .striped(); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /tests/seeder.suite.yml: -------------------------------------------------------------------------------- 1 | class_name: SeederTester 2 | modules: 3 | enabled: 4 | - \Helper\Seeder 5 | - Asserts 6 | - Laravel5: 7 | environment_file: .env.testing 8 | run_database_seeder: true 9 | database_seeder_class: DatabaseSeeder -------------------------------------------------------------------------------- /app/Test/ToLowercase.php: -------------------------------------------------------------------------------- 1 | 5 | Your message: {{ $message }} 6 | 7 | 8 | 12 | @stop -------------------------------------------------------------------------------- /tests/functional/UploadedFilesCept.php: -------------------------------------------------------------------------------- 1 | wantTo('upload a file'); 4 | $I->amOnPage(''); // Necessary to prevent LogicException with message "The page history is empty". 5 | $I->sendPOST('upload', [], ['file' => codecept_data_dir('logo.jpg')]); 6 | $I->see('Success'); -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/mixins/nav-divider.less: -------------------------------------------------------------------------------- 1 | // Horizontal dividers 2 | // 3 | // Dividers (basically an hr) within dropdowns and nav lists 4 | 5 | .nav-divider(@color: #e5e5e5) { 6 | height: 1px; 7 | margin: ((@line-height-computed / 2) - 1) 0; 8 | overflow: hidden; 9 | background-color: @color; 10 | } 11 | -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/mixins/reset-filter.less: -------------------------------------------------------------------------------- 1 | // Reset filters for IE 2 | // 3 | // When you need to remove a gradient background, do not forget to use this to reset 4 | // the IE filter for IE9 and below. 5 | 6 | .reset-filter() { 7 | filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)")); 8 | } 9 | -------------------------------------------------------------------------------- /app/Validation/CustomValidator.php: -------------------------------------------------------------------------------- 1 | assertCount(1, User::all()); 10 | } 11 | 12 | public function secondTest(SeederTester $I) 13 | { 14 | $I->assertCount(1, User::all()); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/mixins/alerts.less: -------------------------------------------------------------------------------- 1 | // Alerts 2 | 3 | .alert-variant(@background; @border; @text-color) { 4 | background-color: @background; 5 | border-color: @border; 6 | color: @text-color; 7 | 8 | hr { 9 | border-top-color: darken(@border, 5%); 10 | } 11 | .alert-link { 12 | color: darken(@text-color, 10%); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /tests/functional/SpecialCharactersCept.php: -------------------------------------------------------------------------------- 1 | wantTo('test for text that uses special characters'); 4 | 5 | $I->amOnPage('/special-characters'); 6 | 7 | $I->see('Straße', 'p.character'); 8 | $I->see('Straße', 'p.html-encoded'); 9 | 10 | $I->click('Straße', 'a.character'); 11 | $I->click('Straße', 'a.html-encoded'); 12 | -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | call('UserTableSeeder'); 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /tests/functional/FormCept.php: -------------------------------------------------------------------------------- 1 | wantTo('submit a form'); 4 | $I->amOnPage('/form'); 5 | $I->fillField('message', 'My message!'); 6 | $I->click('Submit'); 7 | 8 | $I->see('Your message: My message!'); 9 | 10 | $I->fillField('message', 'Another message!'); 11 | $I->click('Submit'); 12 | 13 | $I->see('Your message: Another message!'); 14 | -------------------------------------------------------------------------------- /app/Listeners/TestEventListener.php: -------------------------------------------------------------------------------- 1 | 'johndoe@example.com', 'password' => bcrypt('password')]); 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /database/seeds/UserTableSeeder.php: -------------------------------------------------------------------------------- 1 | 'johndoe@example.com', 'password' => bcrypt('password')]); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /resources/views/home.blade.php: -------------------------------------------------------------------------------- 1 | @extends('app') 2 | 3 | @section('content') 4 |Straße
5 |Straße
6 | Straße 7 | Straße 8 | 9 | 13 | @stop 14 | -------------------------------------------------------------------------------- /tests/functional/HelpersCest.php: -------------------------------------------------------------------------------- 1 | assertEquals('http://myapp.com/posts', route('posts.index')); 9 | } 10 | 11 | public function routeAfterRequest(FunctionalTester $I) 12 | { 13 | $I->amOnRoute('posts.index'); 14 | $I->assertEquals('http://myapp.com/posts', route('posts.index')); 15 | } 16 | 17 | } -------------------------------------------------------------------------------- /resources/assets/less/bootstrap/mixins/responsive-visibility.less: -------------------------------------------------------------------------------- 1 | // Responsive utilities 2 | 3 | // 4 | // More easily include all the states for responsive-utilities.less. 5 | .responsive-visibility() { 6 | display: block !important; 7 | table& { display: table; } 8 | tr& { display: table-row !important; } 9 | th&, 10 | td& { display: table-cell !important; } 11 | } 12 | 13 | .responsive-invisibility() { 14 | display: none !important; 15 | } 16 | -------------------------------------------------------------------------------- /resources/views/hello.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.scaffold') 2 | 3 | @section('main') 4 || ID | 11 |Actions | 13 ||
|---|---|---|
| {{ $user->id }} | 19 |{{ $user->email }} | 20 |Edit | 21 |
| Title | 13 |Body | 14 |||
|---|---|---|---|
| {{ $post->title }} | 20 |{{ $post->body }} | 21 |Edit | 22 |23 | 28 | | 29 |
{{ Session::get('message') }}
19 || Title | 14 |Body | 15 |||
|---|---|---|---|
| {{ $post->title }} | 22 |{{ $post->body }} | 23 |Edit | 24 |25 | 30 | | 31 |