File manager - Edit - /var/www/html/spdc/api/routes/web.php
Back
<?php use App\Models\Signature; use Illuminate\Http\Request; use App\Models\OccurrencyScripture; use Illuminate\Support\Facades\Route; use App\Models\OccurrencyScriptureDemolition; use App\Models\OccurrencyScriptureImpediment; use App\Models\OccurrencyScriptureInterdiction; use App\Models\OccurrencyScriptureNotification; use App\Models\OccurrencyScriptureDisinterdiction; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | contains the "web" middleware group. Now create something great! | */ Route::get('/', function () { echo "DC API! :D"; }); // Route::get('/interdiction', function () { // return view('scriptures.interdiction'); // }); // Route::post('/upload', function (Request $request) { // $result = uploadFile($request->file, 'signature'); // })->name('test.upload'); // Route::get('/upload-and-load', function () { // // $signature = Signature::find('9a4a5187-eff1-4342-9a7b-9d8318bacf7f'); // // $scripture = OccurrencyScriptureInterdiction::orderBy('created_at','desc')->first(); // // $scripture = OccurrencyScriptureDisinterdiction::orderBy('created_at','desc')->first(); // // $scripture = OccurrencyScriptureImpediment::orderBy('created_at','desc')->first(); // $scripture = OccurrencyScriptureDemolition::orderBy('created_at','desc')->first(); // return view('tests.upload-and-load', [ // 'base64file' => $scripture->scripture?->file // ]); // })->name('test.uploadAndLoad');
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.12 |
proxy
|
phpinfo
|
Settings