I'm using the intervention image is this all working, my doubt and would like to remove the saved photos from the public folder so as not to be accessed by the URL or protect access by the URL for security reasons would anyone know how to do it? This is my Code ::
public function update_avatar(Request $request){
// Controle do upload do usuário do avatar
if($request->hasFile('avatar')){
$avatar = $request->file('avatar');
$filename = time() . '.' . $avatar->getClientOriginalExtension();
Image::make($avatar)>resize(300, 300)>save( public_path('/uploads/avatars/' . $filename ) );
$user = Auth::user();
$user->avatar = $filename;
$user->save();
}
return view('profile', array('user' => Auth::user()) );
}/fim da function para fazer upload de imagens/