File Upload in Laravel

laravel

file upload in laravel This article is about the file upload in laravel It can be done by using two files one in controller and another in view does the job. First have to create a view file where user can upload files under(resources/views/upload.blade.php)

Create a controller called uploads under app/Http/Controllers/UploadController.php which will validate the file uploaded and process it.

Now finally dont forget to define your routes to make it work.

Make Sure you create a directory ┬ápublic/uploads with 0777 permissions where script storing files. Useful…

Remove index.php in the url of Yii website

Yii

Complete URL management for a Web application involves two aspects: When a user request comes in terms of a URL, the application needs to parse it into understandable parameters. The application needs to provide a way of creating URLs so that the created URLs can be understood by the application. For a Yii application, these are accomplished with the help of CUrlManager. Yii is one of favourite php framework of all time. Here we give another one hidden secret of Yii which is very helpful for changing the URL structure…