new commit

This commit is contained in:
Project Specific Name
2025-11-26 17:53:35 +00:00
parent 710ca02b7e
commit 9f637e6be7
3 changed files with 18 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Http\Controllers;
use App\Models\Services;
use Illuminate\Http\Request;
use App\Models\Categories;
use SebastianBergmann\CodeCoverage\Report\Xml\Project;
@@ -29,11 +30,15 @@ class CategoriesController extends Controller
$name = $request->get(key:'name');
$description = $request->get(key:'description');
$creatoruserId = 1;
$price = 1;
$category_id = 1;
$Services = new Services();
$Services->name = $name;
$Services->description = $description;
$Services->category_id = $category_id;
$Services->price = $price;
$Services->duration_minutes = 1;
$Services->save();
return response()->json($Services->tojson());