Image Orientation in PHP How to fixed Correct Orientation rotate image problem . Solution:- public function imageOrientaionUpload(Request $request) { $publicPath = public_path('uploads_directory/'); if($request->file('imgFile') == null) { echo 'No File Exist'; } $file = $request->file('imgFile'); // generating unique name for uploaded file $uniq = uniqid().time(); $uploadFile = $uniq.'.'.$file->getClientOriginalExtension(); // getting file path $filePath = $file->getPathName(); // image rotation code in php starts here $exif = @exif_read_data($filePath); if(isset($exif['Orientation'])) { $orientation = $exif['Orientation'...
RSS FEED IN LARAVEL Installation The Laravel 5/6/7 Feeds Service Provider can be installed via Composer by requiring the willvincent/feeds package in your project's composer.json. { "require": { "willvincent/feeds": "1.1.*" } } Configuration If you're using Laravel 5.5 or newer you may skip the next step. To use the Feeds Service Provider, you must register the provider when bootstrapping your Laravel application. Find the providers key in your config/app.php and register the Service Provider. 'providers' => [ // ... willvincent\Feeds\FeedsServiceProvider::class, ], Find the aliases key in your config/app.php and register the Facade. 'aliases' => [ // ... 'Feeds' => willvincent\Feeds\Facades\FeedsFacade::class, ], ...