inital commit

This commit is contained in:
2024-02-01 09:53:53 +00:00
commit 9743fce12b
19771 changed files with 4230637 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\TechnoTransport;
class TechnoTransportController extends Controller
{
public function addTechnoTransport(Request $request)
{
$request->validate([
'file' => 'required|mimes:doc,pdf,docx'
]);
$file = $request->file('file')->store('technotransport');
// $techno_transport = new TechnoTransport();
$techno_transport = TechnoTransport::create($request->all());
$techno_transport->file = $file;
$techno_transport->save();
return response()->json([
'status' => 200,
'data' => $techno_transport
]);
}
}