add spatie backup tool

This commit is contained in:
Mekan1206
2026-08-15 11:52:46 +05:00
parent 109a27b0b9
commit 518ad214e6
43 changed files with 2084 additions and 24 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Http\Controllers\Api\V1\Auth\Register;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;
class AuthRegisterRequest extends FormRequest
@@ -19,7 +20,7 @@ class AuthRegisterRequest extends FormRequest
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array|string>
* @return array<string, ValidationRule|array|string>
*/
public function rules(): array
{

View File

@@ -6,11 +6,11 @@ use App\Http\Controllers\Api\V1\Filters\Requests\FilterIndexRequest;
use App\Http\Controllers\Controller;
use App\Models\Ecommerce\Channel\Channel;
use App\Models\Ecommerce\Product\Brand\Brand;
use Illuminate\Support\Facades\DB;
use App\Models\Ecommerce\Product\Category\Category;
use App\Models\Ecommerce\Product\Collection\Collection;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class FilterController extends Controller
{
@@ -39,16 +39,16 @@ class FilterController extends Controller
{
if ($this->shouldFilterByCategory()) {
return Category::query()
->find($this->request->category_id, ['id', 'parent_id'])
->children()
->where('is_visible', true)
->ordered()
->get(['id', 'parent_id', 'name'])
->map(fn ($category) => [
'id' => $category->id,
'parent_id' => $category->parent_id,
'name' => $category->name,
]);
->find($this->request->category_id, ['id', 'parent_id'])
->children()
->where('is_visible', true)
->ordered()
->get(['id', 'parent_id', 'name'])
->map(fn ($category) => [
'id' => $category->id,
'parent_id' => $category->parent_id,
'name' => $category->name,
]);
}
if ($this->shouldFilterByCollection()) {
@@ -155,7 +155,7 @@ class FilterController extends Controller
]);
}
/**
/**
* Brands
*/
private function categoriesForBrand(int $id)