public function restoreFromTrash($name)
    {
        if (file_exists(route()->storage_data.'com/'.$name)) {
            (new Files())->moveDir(route()->storage_data.'com', route()->com, $name);
        }
    }
public function restoreFromTrash($name)
    {
        if (file_exists(route()->storage_data.'com/'.$name)) {
            (new Files())->moveDir(route()->storage_data.'com', route()->com, $name);
        }
    }
public function restoreFromTrash ( $ name ) { if ( file_exists ( route ( ) -> storage_data . 'com/' . $ name ) ) { ( new Files ( ) ) -> moveDir ( route ( ) -> storage_data . 'com' , route ( ) -> com , $ name ) ; } }
Restore from trash component by name.

@param (string) $name Name of component.

@since 3.0.0

@return void
Restore from trash component by name .