Answer Posted / sunil kumar
Create a view file called resources/views/uploadfile.php and copy the following code in that file.
resources/views/uploadfile.php
Example :
<html>
<body>
<?php
echo Form::open(array('url' => '/uploadfile','files'=>'true'));
echo 'Select the file to upload.';
echo Form::file('image');
echo Form::submit('Upload File');
echo Form::close();
?>
</body>
</html>
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What do you understand by lumen?
Tell me why laravel over other php frameworks?
Differce between contracts and facades?
Is laravel easier than php?
What is heredoc syntax?
What is database migration? And how to use it to add insert initial data to database?
What is monolog library?
What are facades?
How to create custom middleware in laravel?
What is Basic Response in Laravel ?
Write a code to upload a file in laravel 5?
Explain facades in laravel?
How to use laravel framework in php?
How do you register service providers?
Explain about Form without CSRF token in Laravel ?