Skip to content

Commit

Permalink
Merge pull request #52 from avored/dev
Browse files Browse the repository at this point in the history
merge dev to master
  • Loading branch information
indpurvesh authored Oct 15, 2018
2 parents 1ae2f7d + a043405 commit 5094a42
Show file tree
Hide file tree
Showing 145 changed files with 643 additions and 832 deletions.
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,17 @@
"require" : {
"php" : ">=7.1.3",
"symfony/yaml" : "^4.0",
"laravel/framework" : "5.6.*",
"laravel/framework" : "5.7.*",
"barryvdh/laravel-dompdf": "0.8.*",
"laravel/passport": "5.0.*",
"laravel/passport": "7.0.*",
"stripe/stripe-php": "^6.3",
"beyondcode/laravel-self-diagnosis": "^1.0"

},
"require-dev" : {
"phpunit/phpunit" : "~7.0",
"orchestra/testbench" : "~3.6"
"orchestra/testbench" : "~3.7",
"mockery/mockery" : "1.2.*"
},
"autoload" : {
"psr-4" : {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ public function up()
$table->string('language')->nullable()->default('en');
$table->string('image_path')->nullable()->default(null);
$table->rememberToken();
$table->timestamp('email_verified_at')->nullable();
$table->timestamps();

$table->foreign('role_id')->references('id')->on('roles')->onDelete('cascade');
Expand All @@ -406,8 +407,8 @@ public function up()
$table->string('company_name')->nullable();
$table->string('phone')->nullable();
$table->enum('status', ['GUEST', 'LIVE'])->default('LIVE');
$table->string('activation_token')->nullable()->default(null);
$table->string('tax_no')->nullable()->default(null);
$table->timestamp('email_verified_at')->nullable();
$table->rememberToken();
$table->timestamps();
});
Expand Down
2 changes: 0 additions & 2 deletions resources/views/forms/file.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
$value = $model->$name;
}
//dd($value);
if(isset($attributes)) {
$attributes['name'] = $name;
$attributes['type'] = "file";
Expand Down
4 changes: 1 addition & 3 deletions resources/views/product-attribute/select.blade.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<div class="form-group">
<label for="{{ $field->name() }}">{{ $field->label() }}</label>
<select class="form-control" name="{{ $field->name() }}" id="{{ $field->name() }}">
<?php
//dd($field->option());
?>

@foreach($field->option() as $optionValue => $optionLabel)
<option value="{{ $optionValue }}">{{ $optionLabel }}</option>
@endforeach
Expand Down
4 changes: 0 additions & 4 deletions resources/views/product/card/downloadable.blade.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@

@include('avored-framework::forms.file',['name' => 'downloadable[demo_product]','label' => 'Demo Product (If any)'])

<?php
//dd($model->downloadable);
?>
@if(isset($model) && isset($model->downloadable) && $model->downloadable->demo_path != "")

<a href="{{ route('admin.product.download.demo.media', $model->downloadable->token) }}"
Expand Down
1 change: 0 additions & 1 deletion resources/views/product/card/property.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class="btn btn-warning modal-use-selected">
@php
if(!$productVarcharPropertyValue instanceof \AvoRed\Framework\Models\Database\Property) {
$property = $productVarcharPropertyValue->property;
//dd($productVarcharPropertyValue);
} else {
$property = $productVarcharPropertyValue;
}
Expand Down
4 changes: 0 additions & 4 deletions resources/views/product/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,6 @@ class="btn btn-primary"
</button>
</div>

<?php
//dd($model);
?>
</form>
</div>
@endsection
Expand Down
3 changes: 0 additions & 3 deletions src/AdminConfiguration/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class Provider extends ServiceProvider
public function boot()
{
$this->registerAdminConfiguration();

}

/**
Expand Down Expand Up @@ -56,7 +55,6 @@ public function provides()
return ['adminconfiguration', 'AvoRed\Framework\AdminConfiguration\Manager'];
}


/**
* Register the Menus.
*
Expand Down Expand Up @@ -188,5 +186,4 @@ protected function registerAdminConfiguration()
return $options;
});
}

}
13 changes: 6 additions & 7 deletions src/Api/Controllers/AttributeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Illuminate\Http\JsonResponse;
use AvoRed\Framework\Models\Database\Attribute;
use AvoRed\Framework\Api\Controllers\Controller;
use AvoRed\Framework\Api\Resources\Attribute\AttributeResource;
use AvoRed\Framework\Api\Resources\Attribute\AttributeCollectionResource;
use AvoRed\Framework\Product\Requests\AttributeRequest;
Expand All @@ -13,7 +12,7 @@ class AttributeController extends Controller
{
/**
* Return upto 10 Record for an Resource in Json Formate
*
*
* @return \Illuminate\Http\Resources\CollectsResources
*/
public function index()
Expand All @@ -25,7 +24,7 @@ public function index()

/**
* Create an Resource and Returns a Json Resrouce for that Record
*
*
* @return \Illuminate\Http\Resources\Json\JsonResource
*/
public function store(AttributeRequest $request)
Expand All @@ -37,7 +36,7 @@ public function store(AttributeRequest $request)

/**
* Find a Record and Returns a Json Resrouce for that Record
*
*
* @return \Illuminate\Http\Resources\Json\JsonResource
*/
public function show(Attribute $attribute)
Expand All @@ -47,7 +46,7 @@ public function show(Attribute $attribute)

/**
* Update and Returns a Json Resrouce for that Record
*
*
* @return \Illuminate\Http\Resources\Json\JsonResource
*/
public function update(AttributeRequest $request, Attribute $attribute)
Expand All @@ -58,10 +57,10 @@ public function update(AttributeRequest $request, Attribute $attribute)

/**
* Destroy an Record and Return Null Json Response
*
*
* @return \Illuminate\Http\Resources\Json\JsonResource
*/
public function destroy(Attribute $attribute)
public function destroy(Attribute $attribute)
{
$attribute->delete();
return JsonResponse::create(null, 204);
Expand Down
12 changes: 6 additions & 6 deletions src/Api/Controllers/CategoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
use Illuminate\Http\JsonResponse;
use AvoRed\Framework\Models\Database\Category;
use AvoRed\Framework\Product\Requests\CategoryRequest;
use AvoRed\Framework\Api\Controllers\Controller;
use AvoRed\Framework\Api\Resources\Category\CategoryResource;
use AvoRed\Framework\Api\Resources\Category\CategoryCollectionResource;

class CategoryController extends Controller
{
/**
* Return upto 10 Record for an Resource in Json Formate
*
*
* @return \Illuminate\Http\Resources\CollectsResources
*/
public function index()
Expand All @@ -25,7 +24,7 @@ public function index()

/**
* Create an Resource and Returns a Json Resrouce for that Record
*
*
* @return \Illuminate\Http\Resources\Json\JsonResource
*/
public function store(CategoryRequest $request)
Expand All @@ -37,16 +36,17 @@ public function store(CategoryRequest $request)

/**
* Find a Record and Returns a Json Resrouce for that Record
*
*
* @return \Illuminate\Http\Resources\Json\JsonResource
*/
public function show(Category $category)
{
return new CategoryResource($category);
}

/**
* Update and Returns a Json Resrouce for that Record
*
*
* @return \Illuminate\Http\Resources\Json\JsonResource
*/
public function update(CategoryRequest $request, Category $category)
Expand All @@ -57,7 +57,7 @@ public function update(CategoryRequest $request, Category $category)

/**
* Destroy an Record and Return Null Json Response
*
*
* @return \Illuminate\Http\Resources\Json\JsonResource
*/
public function destroy(Category $category)
Expand Down
9 changes: 3 additions & 6 deletions src/Api/Controllers/OrderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@

namespace AvoRed\Framework\Api\Controllers;

use Illuminate\Http\JsonResponse;
use AvoRed\Framework\Models\Database\Order;
use AvoRed\Framework\Api\Controllers\Controller;
use AvoRed\Framework\Api\Resources\Order\OrderCollectionResource;
use AvoRed\Framework\Api\Resources\Order\OrderResource;

class OrderController extends Controller
{
/**
* Return upto 10 Record for an Resource in Json Formate
*
*
* @return \Illuminate\Http\Resources\CollectsResources
*/
public function index()
Expand All @@ -21,15 +19,14 @@ public function index()

return new OrderCollectionResource($orders);
}

/**
* Find a Record and Returns a Json Resrouce for that Record
*
*
* @return \Illuminate\Http\Resources\Json\JsonResource
*/
public function show(Order $order)
{
return new OrderResource($order);
}

}
19 changes: 9 additions & 10 deletions src/Api/Controllers/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Illuminate\Http\JsonResponse;
use AvoRed\Framework\Models\Database\Page;
use AvoRed\Framework\Api\Controllers\Controller;
use AvoRed\Framework\Api\Resources\Page\PageResource;
use AvoRed\Framework\Api\Resources\Page\PageCollectionResource;
use AvoRed\Framework\Cms\Requests\PageRequest;
Expand All @@ -13,7 +12,7 @@ class PageController extends Controller
{
/**
* Return upto 10 Record for an Resource in Json Formate
*
*
* @return \Illuminate\Http\Resources\CollectsResources
*/
public function index()
Expand All @@ -25,7 +24,7 @@ public function index()

/**
* Create an Resource and Returns a Json Resrouce for that Record
*
*
* @return \Illuminate\Http\Resources\Json\JsonResource
*/
public function store(PageRequest $request)
Expand All @@ -35,19 +34,19 @@ public function store(PageRequest $request)
return (new PageResource($page));
}

/**
* Find a Record and Returns a Json Resrouce for that Record
*
* @return \Illuminate\Http\Resources\Json\JsonResource
*/
/**
* Find a Record and Returns a Json Resrouce for that Record
*
* @return \Illuminate\Http\Resources\Json\JsonResource
*/
public function show(Page $page)
{
return new PageResource($page);
}

/**
* Update and Returns a Json Resrouce for that Record
*
*
* @return \Illuminate\Http\Resources\Json\JsonResource
*/
public function update(PageRequest $request, Page $page)
Expand All @@ -58,7 +57,7 @@ public function update(PageRequest $request, Page $page)

/**
* Destroy an Record and Return Null Json Response
*
*
* @return \Illuminate\Http\Resources\Json\JsonResource
*/
public function destroy(Page $page)
Expand Down
13 changes: 6 additions & 7 deletions src/Api/Controllers/ProductController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
use Illuminate\Http\JsonResponse;
use AvoRed\Framework\Models\Database\Product;
use AvoRed\Framework\Product\Requests\ProductRequest;
use AvoRed\Framework\Api\Controllers\Controller;
use AvoRed\Framework\Api\Resources\Product\ProductResource;
use AvoRed\Framework\Api\Resources\Product\ProductCollectionResource;

class ProductController extends Controller
{
/**
* Return upto 10 Record for an Resource in Json Formate
*
*
* @return \Illuminate\Http\Resources\CollectsResources
*/
public function index()
Expand All @@ -25,7 +24,7 @@ public function index()

/**
* Create an Resource and Returns a Json Resrouce for that Record
*
*
* @return \Illuminate\Http\Resources\Json\JsonResource
*/
public function store(ProductRequest $request)
Expand All @@ -37,7 +36,7 @@ public function store(ProductRequest $request)

/**
* Find a Record and Returns a Json Resrouce for that Record
*
*
* @return \Illuminate\Http\Resources\Json\JsonResource
*/
public function show($id)
Expand All @@ -48,7 +47,7 @@ public function show($id)

/**
* Update and Returns a Json Resrouce for that Record
*
*
* @return \Illuminate\Http\Resources\Json\JsonResource
*/
public function update(ProductRequest $request, $id)
Expand All @@ -57,10 +56,10 @@ public function update(ProductRequest $request, $id)
$product->update($request->all());
return new ProductResource($product);
}

/**
* Destroy an Record and Return Null Json Response
*
*
* @return \Illuminate\Http\Resources\Json\JsonResource
*/
public function destroy($id)
Expand Down
Loading

0 comments on commit 5094a42

Please sign in to comment.