public function storeProfileImage(Request $request)
    {
        // check if user has permissions to access this link
        if(!User::hasAccess('user', 'update')) {
            return $this->noPermission();
        }
        return $path = $request->file('profileImageID')->storeAs('images', 'filename.jpg');
    }
public function storeProfileImage(Request $request)
    {
        // check if user has permissions to access this link
        if(!User::hasAccess('user', 'update')) {
            return $this->noPermission();
        }
        return $path = $request->file('profileImageID')->storeAs('images', 'filename.jpg');
    }
public function storeProfileImage ( Request $ request ) { // check if user has permissions to access this link if ( ! User :: hasAccess ( 'user' , 'update' ) ) { return $ this -> noPermission ( ) ; } return $ path = $ request -> file ( 'profileImageID' ) -> storeAs ( 'images' , 'filename.jpg' ) ; }
Change users profile image.

@param  Request $request
@return array|false|string
Change users profile image .