diff --git a/app/Containers/Authentication/Tasks/ApiLogoutTask.php b/app/Containers/Authentication/Tasks/ApiLogoutTask.php old mode 100755 new mode 100644 diff --git a/app/Containers/Authentication/Tasks/GetAuthenticatedUserTask.php b/app/Containers/Authentication/Tasks/GetAuthenticatedUserTask.php old mode 100755 new mode 100644 diff --git a/app/Containers/Authentication/Tasks/WebLoginTask.php b/app/Containers/Authentication/Tasks/WebLoginTask.php old mode 100755 new mode 100644 diff --git a/app/Containers/Authentication/Tasks/WebLogoutTask.php b/app/Containers/Authentication/Tasks/WebLogoutTask.php old mode 100755 new mode 100644 diff --git a/app/Containers/Authentication/Traits/TokenTrait.php b/app/Containers/Authentication/Traits/TokenTrait.php old mode 100755 new mode 100644 diff --git a/app/Containers/Authentication/UI/API/Controllers/Controller.php b/app/Containers/Authentication/UI/API/Controllers/Controller.php old mode 100755 new mode 100644 diff --git a/app/Containers/Authentication/UI/API/Requests/UserLoginRequest.php b/app/Containers/Authentication/UI/API/Requests/UserLoginRequest.php old mode 100755 new mode 100644 diff --git a/app/Containers/Authentication/UI/API/Requests/UserLogoutRequest.php b/app/Containers/Authentication/UI/API/Requests/UserLogoutRequest.php old mode 100755 new mode 100644 diff --git a/app/Containers/Authentication/UI/API/Routes/UserLogin.v1.private.php b/app/Containers/Authentication/UI/API/Routes/UserLogin.v1.private.php old mode 100755 new mode 100644 diff --git a/app/Containers/Authentication/UI/API/Routes/UserLogout.v1.private.php b/app/Containers/Authentication/UI/API/Routes/UserLogout.v1.private.php old mode 100755 new mode 100644 diff --git a/app/Containers/Authentication/UI/WEB/Controllers/Controller.php b/app/Containers/Authentication/UI/WEB/Controllers/Controller.php old mode 100755 new mode 100644 diff --git a/app/Containers/Authentication/UI/WEB/Requests/LoginRequest.php b/app/Containers/Authentication/UI/WEB/Requests/LoginRequest.php old mode 100755 new mode 100644 diff --git a/app/Containers/Authentication/UI/WEB/Requests/ViewDashboardRequest.php b/app/Containers/Authentication/UI/WEB/Requests/ViewDashboardRequest.php old mode 100755 new mode 100644 diff --git a/app/Containers/Authentication/UI/WEB/Routes/main.php b/app/Containers/Authentication/UI/WEB/Routes/main.php old mode 100755 new mode 100644 diff --git a/app/Containers/Authentication/UI/WEB/Views/dashboard.blade.php b/app/Containers/Authentication/UI/WEB/Views/dashboard.blade.php old mode 100755 new mode 100644 diff --git a/app/Containers/Authentication/UI/WEB/Views/login.blade.php b/app/Containers/Authentication/UI/WEB/Views/login.blade.php old mode 100755 new mode 100644 diff --git a/app/Containers/Documentation/Tasks/GetDocsTypesTask.php b/app/Containers/Documentation/Tasks/GetDocsTypesTask.php index e95c00644..a7b4e42d0 100644 --- a/app/Containers/Documentation/Tasks/GetDocsTypesTask.php +++ b/app/Containers/Documentation/Tasks/GetDocsTypesTask.php @@ -2,6 +2,7 @@ namespace App\Containers\Documentation\Tasks; +use App\Containers\Documentation\Exceptions\NoDocTypesFoundException; use App\Ship\Parents\Tasks\Task; use Illuminate\Support\Facades\Config; diff --git a/app/Ship/Parents/Requests/Request.php b/app/Ship/Parents/Requests/Request.php index d100ee7ab..b44646138 100644 --- a/app/Ship/Parents/Requests/Request.php +++ b/app/Ship/Parents/Requests/Request.php @@ -3,6 +3,7 @@ namespace App\Ship\Parents\Requests; use App\Containers\Authorization\Traits\AuthorizationTrait; +use App\Containers\User\Models\User; use App\Ship\Engine\Traits\HashIdTrait; use Illuminate\Foundation\Http\FormRequest as LaravelFormRequest; @@ -23,6 +24,8 @@ abstract class Request extends LaravelFormRequest * User can set multiple permissions (separated with "|") and if the user has * any of the permissions, he will be authorize to proceed with this action. * + * @param \App\Containers\User\Models\User|null $user + * * @return bool */ public function hasAccess(User $user = null) diff --git a/readme.md b/readme.md index 2fb2d04fc..7521fcc73 100644 --- a/readme.md +++ b/readme.md @@ -1,27 +1,32 @@ # apiato - +[![apiato](https://img.shields.io/badge/Status-Awesome-brightgreen.svg)](https://github.com/apiato/apiato) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/apiato/apiato/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/apiato/apiato/?branch=master) [![Build Status](https://travis-ci.org/apiato/apiato.svg?branch=master)](https://travis-ci.org/apiato/apiato) -[![Build Status](https://scrutinizer-ci.com/g/apiato/apiato/badges/build.png?b=master)](https://scrutinizer-ci.com/g/apiato/apiato/build-status/master) +[![Latest Stable Version](https://poser.pugx.org/apiato/apiato/v/stable)](https://packagist.org/packages/apiato/apiato) +[![Latest Unstable Version](https://poser.pugx.org/apiato/apiato/v/unstable)](https://packagist.org/packages/apiato/apiato) [![Dependency Status](https://www.versioneye.com/user/projects/578988f4c3d40f0046852116/badge.svg?style=flat-square)](https://www.versioneye.com/user/projects/578988f4c3d40f0046852116) -[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/apiato/apiato/master/LICENSE) -[![apiato](https://img.shields.io/badge/Status-Awesome-brightgreen.svg)](https://github.com/apiato/apiato) +[![Build Status](https://scrutinizer-ci.com/g/apiato/apiato/badges/build.png?b=master)](https://scrutinizer-ci.com/g/apiato/apiato/build-status/master) +[![composer.lock](https://poser.pugx.org/apiato/apiato/composerlock)](https://packagist.org/packages/apiato/apiato) +[![License](https://poser.pugx.org/apiato/apiato/license)](https://packagist.org/packages/apiato/apiato) -[![forthebadge](http://forthebadge.com/images/badges/ages-12.svg)](https://www.zalt.me) +[![forthebadge](http://forthebadge.com/images/badges/ages-12.svg)](http://apiato.co) > Build better API's faster with **PHP** and **Laravel 5.4**. + +
+ +**NOTE:** This project used to be named `Hello API`. It was renamed to `apiato` in March, 22, 2017 for better SEO. + ## Content * [Introduction](#Introduction) * [Features](#Features) * [Chat](#Chat) * [Documentation](#Documentation) -* [Contribution](#Contribution) -* [Credits](#Credits) * [License](#License) @@ -103,19 +108,12 @@ Join our chatting room on Gitter by click on the icon below ## Documentation **apiato** is built with a new architectural pattern called **[Porto](https://github.com/apiato/Documentation)**. -> **Porto SAP** is a modern Software Architectural Pattern, designed to help developers organize their Code in a super maintainable way. It is very helpful for big and long term projects, as they tend to have higher complexity with time. -- [Mahmoud Zalt](https://github.com/Mahmoudz) - -Reading the simple [**Porto Document**](https://github.com/apiato/Documentation) is essential before starting. +> **Porto SAP** is a modern Software Architectural Pattern, designed to help developers organize their Code in a super maintainable way. It is very helpful for big and long term projects, as they tend to have higher complexity with time. +Reading the simple [**Porto document**](https://github.com/apiato/Documentation) is essential before starting. -[**Full Documentation**](https://apiato.readme.io/docs/installation) - - - -## Contribution - -Anytime. +### apiato full [documentation](https://apiato.readme.io/docs/installation) here. @@ -124,21 +122,15 @@ Anytime. | Contributors | Twitter | Ask for Help | Contact / Hire | Site | |------------------------|---------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------|-----------------|-----------------| -| [Mahmoud Zalt](https://github.com/Mahmoudz) (Creator) | @[Mahmoud_Zalt](https://twitter.com/Mahmoud_Zalt) | [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/mahmoudz) | mahmoud@zalt.me | [https://zalt.me](https://zalt.me/) | +| [Mahmoud Zalt](https://github.com/Mahmoudz) (Maker) | @[Mahmoud_Zalt](https://twitter.com/Mahmoud_Zalt) | [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/mahmoudz) | mahmoud@zalt.me | [https://zalt.me](https://zalt.me/) | ## License -The MIT License [(MIT)](https://github.com/apiato/apiato/blob/master/LICENSE). +The MIT License [(MIT)](https://opensource.org/licenses/MIT). [![SensioLabsInsight](https://insight.sensiolabs.com/projects/1bdf99d7-13b1-46ca-8576-c6a702f9afd7/big.png)](https://insight.sensiolabs.com/projects/1bdf99d7-13b1-46ca-8576-c6a702f9afd7) - - - - - - diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php deleted file mode 100644 index 486dc271a..000000000 --- a/tests/Feature/ExampleTest.php +++ /dev/null @@ -1,23 +0,0 @@ -get('/'); - - $response->assertStatus(200); - } -} diff --git a/tests/Unit/ExampleTest.php b/tests/Unit/ExampleTest.php deleted file mode 100644 index 5663bb49f..000000000 --- a/tests/Unit/ExampleTest.php +++ /dev/null @@ -1,20 +0,0 @@ -assertTrue(true); - } -}