Skip to content

PHP code snippet – How uplpoad video in laravel?

namespace App\Http\Controllers;

use Illuminate\Support\Facades\Request;

class UploadController extends Controller

    public function upload(Request $request)


            echo 'Uploaded';
            $file = Request::file('file');
            $file->move('uploads', $file->getClientOriginalName());
            echo '$file' . $file->getClientOriginalName() . '"/>';

See also  Java code snippet - How to secure specific url in spring security?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.