added some user scaffolding
This commit is contained in:
@@ -1,7 +1,21 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Created by IntelliJ IDEA.
|
namespace App\Http\Controllers\User;
|
||||||
* User: nshahzad
|
|
||||||
* Date: 6/8/17
|
use InfyOm\Generator\Utils\ResponseUtil;
|
||||||
* Time: 8:47 PM
|
use App\Http\Controllers\Controller;
|
||||||
*/
|
use Response;
|
||||||
|
|
||||||
|
|
||||||
|
class UserBaseController extends Controller
|
||||||
|
{
|
||||||
|
public function sendResponse($result, $message)
|
||||||
|
{
|
||||||
|
return Response::json(ResponseUtil::makeResponse($message, $result));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function sendError($error, $code = 404)
|
||||||
|
{
|
||||||
|
return Response::json(ResponseUtil::makeError($error), $code);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
+5
-5
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "laravel/laravel",
|
"name": "phpvms/phpvms",
|
||||||
"description": "The Laravel Framework.",
|
"description": "phpVMS - Virtual Airline Administration",
|
||||||
"keywords": ["framework", "laravel"],
|
"keywords": ["phpvms", "virtual", "airlines",],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "project",
|
"type": "project",
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.6.4",
|
"php": ">=7.*",
|
||||||
"laravel/framework": "5.3.*",
|
"laravel/framework": "^7.0",
|
||||||
"yajra/laravel-datatables-oracle": "~6.0",
|
"yajra/laravel-datatables-oracle": "~6.0",
|
||||||
"barryvdh/laravel-ide-helper": "^2.1",
|
"barryvdh/laravel-ide-helper": "^2.1",
|
||||||
"infyomlabs/laravel-generator": "5.3.x-dev",
|
"infyomlabs/laravel-generator": "5.3.x-dev",
|
||||||
|
|||||||
@@ -18,7 +18,16 @@ Route::get('/', function () {
|
|||||||
|
|
||||||
Route::get('/home', 'HomeController@index');
|
Route::get('/home', 'HomeController@index');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* User routes that require auth
|
||||||
|
*/
|
||||||
|
|
||||||
|
Route::group([
|
||||||
|
'namespace' => 'User',
|
||||||
|
'middleware' => 'auth',
|
||||||
|
], function () {
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Admin routes
|
* Admin routes
|
||||||
|
|||||||
Reference in New Issue
Block a user